public class S3DBLayer extends BuildingLayer
Layer.EnableHandlerBUILDING_LEVEL_HEIGHT, mBuildings, mExtrusionRenderer, MIN_ZOOM, mTileLayer, POST_AA, RAW_DATA, TRANSLUCENT| Constructor and Description |
|---|
S3DBLayer(Map map,
VectorTileLayer tileLayer) |
S3DBLayer(Map map,
VectorTileLayer tileLayer,
boolean shadow) |
S3DBLayer(Map map,
VectorTileLayer tileLayer,
int zoomMin,
int zoomMax,
boolean shadow) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(MapTile tile,
boolean success)
Called on loader thread when tile loading is completed
|
boolean |
isColored() |
boolean |
isTransparent() |
void |
processElement(MapElement element,
ExtrusionStyle extrusion,
MapTile tile)
Process map element.
|
protected void |
processElements(MapTile tile)
Process all stored map elements (here only buildings).
|
void |
setColored(boolean colored) |
void |
setTransparent(boolean transparent) |
addZoomLimit, get, getExtrusionRenderer, getKeyOrDefault, getTransformedValue, getValue, process, removeZoomLimitgetRenderer, isEnabled, map, onDetach, setEnabled, setEnableHandlerpublic S3DBLayer(Map map, VectorTileLayer tileLayer)
public S3DBLayer(Map map, VectorTileLayer tileLayer, boolean shadow)
public S3DBLayer(Map map, VectorTileLayer tileLayer, int zoomMin, int zoomMax, boolean shadow)
map - The map data to addtileLayer - The vector tile layer which contains the tiles and map elementszoomMin - The minimum zoom at which the layer appearszoomMax - The maximum zoom at which the layer appearsshadow - Declare if using shadow rendererpublic boolean isColored()
public void setColored(boolean colored)
colored - true: use colour written in '*:colour' tag,
false: use colours of extrusion stylepublic boolean isTransparent()
public void setTransparent(boolean transparent)
transparent - if true coloured buildings blend transparency of extrusion style
(only in combination with isColored = true)public void complete(MapTile tile, boolean success)
VectorTileLayer.TileLoaderThemeHookcomplete in interface VectorTileLayer.TileLoaderThemeHookcomplete in class BuildingLayerpublic void processElement(MapElement element, ExtrusionStyle extrusion, MapTile tile)
BuildingLayerprocessElement in class BuildingLayerelement - the map elementextrusion - the style of map elementtile - the tile which contains map elementprotected void processElements(MapTile tile)
BuildingLayerprocessElements in class BuildingLayertile - the tile which contains stored map elements