Package org.geotools.mbstyle.source
Class RasterMBSource
- Object
-
- MBSource
-
- TileMBSource
-
- RasterMBSource
-
public class RasterMBSource extends TileMBSource
Wrapper around aJSONObject
holding a Mapbox raser source. Tiled sources (vector and raster) must specify their details in terms of the TileJSON specification.
-
-
Constructor Summary
Constructors Constructor Description RasterMBSource(JSONObject json)
RasterMBSource(JSONObject json, MBObjectParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getTileSize()
(Optional) Units in pixels.String
getType()
Type of source.-
Methods inherited from class TileMBSource
getMaxZoom, getMinZoom, getTiles, getUrl
-
-
-
-
Constructor Detail
-
RasterMBSource
public RasterMBSource(JSONObject json)
-
RasterMBSource
public RasterMBSource(JSONObject json, MBObjectParser parser)
-
-
Method Detail
-
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
-
-