java.lang.Object | ||
↳ | com.carto.vectortiles.VectorTileDecoder | |
↳ | com.carto.vectortiles.MBVectorTileDecoder |
Decoder for vector tiles in MapBox format.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MBVectorTileDecoder(CompiledStyleSet compiledStyleSet)
Constructs a decoder for MapBox vector tiles based on specified compiled style set.
| |||||||||||
MBVectorTileDecoder(CartoCSSStyleSet cartoCSSStyleSet)
Constructs a decoder for MapBox vector tiles based on specified CartoCSS style set.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addFallbackFont(BinaryData fontData)
Adds a fallback font.
| ||||||||||
synchronized void | delete() | ||||||||||
CartoCSSStyleSet |
getCartoCSSStyleSet()
Returns the current CartoCSS style set used by the decoder.
| ||||||||||
CompiledStyleSet |
getCompiledStyleSet()
Returns the current compiled style set used by the decoder.
| ||||||||||
int |
getMaxZoom()
Returns maximum zoom level supported for by the decoder (or style).
| ||||||||||
int |
getMinZoom()
Returns minimum zoom level supported for by the decoder (or style).
| ||||||||||
String |
getStyleParameter(String param)
Returns the value of the specified style parameter.
| ||||||||||
StringVector |
getStyleParameters()
Returns the list of all available style parameters.
| ||||||||||
void |
setCartoCSSStyleSet(CartoCSSStyleSet styleSet)
Sets the current CartoCSS style set used by the decoder.
| ||||||||||
void |
setCompiledStyleSet(CompiledStyleSet styleSet)
Sets the current compiled style set used by the decoder.
| ||||||||||
boolean |
setStyleParameter(String param, String value)
Sets the value of the specified parameter.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a decoder for MapBox vector tiles based on specified compiled style set.
compiledStyleSet | The compiled style set for the tiles. |
---|
Exception | If the decoder could not be created or there are issues with the style set. |
---|
Constructs a decoder for MapBox vector tiles based on specified CartoCSS style set.
cartoCSSStyleSet | The CartoCSS style set for the tiles. |
---|
Exception | If the decoder could not be created or there are issues with the style set. |
---|
Adds a fallback font. The font should be TTF or OTF font. It is used for glyphs not found in style defined fonts.
fontData | The font binary. |
---|
Returns the current CartoCSS style set used by the decoder.
If decoder uses non-CartoCSS style set, null is returned.
Returns the current compiled style set used by the decoder.
If decoder uses non-compiled style set, null is returned.
Returns maximum zoom level supported for by the decoder (or style).
Returns minimum zoom level supported for by the decoder (or style).
Returns the value of the specified style parameter.
The style parameter must be declared in the current style.
param | The parameter to return. |
---|
IllegalArgumentException | If the style parameter does not exist. |
---|
Returns the list of all available style parameters.
Sets the current CartoCSS style set used by the decoder.
styleSet | The new style set to use. |
---|
Exception | If the decoder could not be updated or there are issues with the style set. |
---|
Sets the current compiled style set used by the decoder.
styleSet | The new style set to use. |
---|
Exception | If the decoder could not be updated or there are issues with the style set. |
---|
Sets the value of the specified parameter.
The style parameter must be declared in the current style.
param | The parameter to set. |
---|---|
value | The value for the parameter. |