Package org.oscim.layers.tile.buildings
Class S3DBLayer
java.lang.Object
org.oscim.layers.Layer
org.oscim.layers.tile.buildings.BuildingLayer
org.oscim.layers.tile.buildings.S3DBLayer
- All Implemented Interfaces:
VectorTileLayer.TileLoaderThemeHook,ZoomLimiter.IZoomLimiter
A layer to display S3DB elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.layers.Layer
Layer.EnableHandler -
Field Summary
Fields inherited from class org.oscim.layers.tile.buildings.BuildingLayer
BUILDING_LEVEL_HEIGHT, mBuildings, mExtrusionRenderer, MIN_ZOOM, mTileLayer, POST_AA, RAW_DATA, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionS3DBLayer(Map map, VectorTileLayer tileLayer) S3DBLayer(Map map, VectorTileLayer tileLayer, boolean shadow) S3DBLayer(Map map, VectorTileLayer tileLayer, int zoomMin, int zoomMax, boolean shadow) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled on loader thread when tile loading is completedbooleanbooleanvoidprocessElement(MapElement element, ExtrusionStyle extrusion, MapTile tile) Process map element.protected voidprocessElements(MapTile tile) Process all stored map elements (here only buildings).voidsetColored(boolean colored) voidsetTransparent(boolean transparent) Methods inherited from class org.oscim.layers.tile.buildings.BuildingLayer
addZoomLimit, get, getExtrusionRenderer, getKeyOrDefault, getTransformedValue, getValue, process, removeZoomLimitMethods inherited from class org.oscim.layers.Layer
getRenderer, isEnabled, map, onDetach, setEnabled, setEnableHandler
-
Constructor Details
-
S3DBLayer
-
S3DBLayer
-
S3DBLayer
- Parameters:
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 renderer
-
-
Method Details
-
isColored
public boolean isColored() -
setColored
public void setColored(boolean colored) - Parameters:
colored- true: use colour written in '*:colour' tag, false: use colours of extrusion style
-
isTransparent
public boolean isTransparent() -
setTransparent
public void setTransparent(boolean transparent) - Parameters:
transparent- if true coloured buildings blend transparency of extrusion style (only in combination with isColored = true)
-
complete
Description copied from interface:VectorTileLayer.TileLoaderThemeHookCalled on loader thread when tile loading is completed- Specified by:
completein interfaceVectorTileLayer.TileLoaderThemeHook- Overrides:
completein classBuildingLayer
-
processElement
Description copied from class:BuildingLayerProcess map element.- Overrides:
processElementin classBuildingLayer- Parameters:
element- the map elementextrusion- the style of map elementtile- the tile which contains map element
-
processElements
Description copied from class:BuildingLayerProcess all stored map elements (here only buildings).- Overrides:
processElementsin classBuildingLayer- Parameters:
tile- the tile which contains stored map elements
-