Class S3DBLayer

All Implemented Interfaces:
VectorTileLayer.TileLoaderThemeHook, ZoomLimiter.IZoomLimiter

public class S3DBLayer extends BuildingLayer
A layer to display S3DB elements.
  • Constructor Details

    • S3DBLayer

      public S3DBLayer(Map map, VectorTileLayer tileLayer)
    • S3DBLayer

      public S3DBLayer(Map map, VectorTileLayer tileLayer, boolean shadow)
    • S3DBLayer

      public S3DBLayer(Map map, VectorTileLayer tileLayer, int zoomMin, int zoomMax, boolean shadow)
      Parameters:
      map - The map data to add
      tileLayer - The vector tile layer which contains the tiles and map elements
      zoomMin - The minimum zoom at which the layer appears
      zoomMax - The maximum zoom at which the layer appears
      shadow - 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

      public void complete(MapTile tile, boolean success)
      Description copied from interface: VectorTileLayer.TileLoaderThemeHook
      Called on loader thread when tile loading is completed
      Specified by:
      complete in interface VectorTileLayer.TileLoaderThemeHook
      Overrides:
      complete in class BuildingLayer
    • processElement

      public void processElement(MapElement element, ExtrusionStyle extrusion, MapTile tile)
      Description copied from class: BuildingLayer
      Process map element.
      Overrides:
      processElement in class BuildingLayer
      Parameters:
      element - the map element
      extrusion - the style of map element
      tile - the tile which contains map element
    • processElements

      protected void processElements(MapTile tile)
      Description copied from class: BuildingLayer
      Process all stored map elements (here only buildings).
      Overrides:
      processElements in class BuildingLayer
      Parameters:
      tile - the tile which contains stored map elements