Class RasterMBSource

Object
MBSource
TileMBSource
RasterMBSource

public class RasterMBSource extends TileMBSource
Wrapper around a JSONObject holding a Mapbox raser source. Tiled sources (vector and raster) must specify their details in terms of the TileJSON specification.
See Also:
  • Constructor Details

    • RasterMBSource

      public RasterMBSource(JSONObject json)
    • RasterMBSource

      public RasterMBSource(JSONObject json, MBObjectParser parser)
  • Method Details

    • getTileSize

      public Number getTileSize()
      (Optional) Units in pixels. Defaults to 512.

      The minimum visual size to display tiles for this layer. Only configurable for raster layers.

      Returns:
      Number for the tile size, defaulting to 512
    • getType

      public String getType()
      Description copied from class: MBSource
      Type of source.
      Specified by:
      getType in class MBSource
      Returns:
      One of "vector", "raster", "geojson", "image", "video", "canvas".