VectorTileLayer: rename hook function: render->process
This commit is contained in:
parent
0814a06d42
commit
c29c85db41
@ -65,7 +65,7 @@ public class BuildingLayer extends Layer implements TileLoaderThemeHook {
|
|||||||
|
|
||||||
/** TileLoaderThemeHook */
|
/** TileLoaderThemeHook */
|
||||||
@Override
|
@Override
|
||||||
public boolean render(MapTile tile, RenderBuckets buckets, MapElement element,
|
public boolean process(MapTile tile, RenderBuckets buckets, MapElement element,
|
||||||
RenderStyle style, int level) {
|
RenderStyle style, int level) {
|
||||||
|
|
||||||
if (!(style instanceof ExtrusionStyle))
|
if (!(style instanceof ExtrusionStyle))
|
||||||
|
@ -145,7 +145,7 @@ public class VectorTileLayer extends TileLayer {
|
|||||||
*/
|
*/
|
||||||
public interface TileLoaderThemeHook {
|
public interface TileLoaderThemeHook {
|
||||||
/** Called for each RenderStyle found for a MapElement. */
|
/** Called for each RenderStyle found for a MapElement. */
|
||||||
public boolean render(MapTile tile, RenderBuckets buckets,
|
public boolean process(MapTile tile, RenderBuckets buckets,
|
||||||
MapElement element, RenderStyle style, int level);
|
MapElement element, RenderStyle style, int level);
|
||||||
|
|
||||||
/** Called on loader thread when tile loading is completed */
|
/** Called on loader thread when tile loading is completed */
|
||||||
@ -177,7 +177,7 @@ public class VectorTileLayer extends TileLayer {
|
|||||||
|
|
||||||
LList<TileLoaderThemeHook> th = mLoaderThemeHooks.head();
|
LList<TileLoaderThemeHook> th = mLoaderThemeHooks.head();
|
||||||
while (th != null) {
|
while (th != null) {
|
||||||
if (th.data.render(tile, layers, element, style, level))
|
if (th.data.process(tile, layers, element, style, level))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
th = th.next;
|
th = th.next;
|
||||||
|
@ -31,7 +31,7 @@ public class LabelTileLoaderHook implements TileLoaderThemeHook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean render(MapTile tile, RenderBuckets buckets, MapElement element,
|
public boolean process(MapTile tile, RenderBuckets buckets, MapElement element,
|
||||||
RenderStyle style, int level) {
|
RenderStyle style, int level) {
|
||||||
|
|
||||||
if (style instanceof TextStyle) {
|
if (style instanceof TextStyle) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user