java.lang.Object | ||
↳ | com.carto.vectortiles.VectorTileDecoder | |
↳ | com.carto.vectortiles.TorqueTileDecoder |
A decoder for Torque layer that accepts json-based Torque tiles.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TorqueTileDecoder(CartoCSSStyleSet styleSet)
Constructs a new TorqueTileDecoder given style.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addFallbackFont(BinaryData fontData)
Adds a fallback font.
| ||||||||||
synchronized void | delete() | ||||||||||
float |
getAnimationDuration()
Returns the animation duration, in seconds.
| ||||||||||
int |
getFrameCount()
Returns the frame count defined in the Torque style.
| ||||||||||
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).
| ||||||||||
int |
getResolution()
Returns the tile resolution, in pixels.
| ||||||||||
CartoCSSStyleSet |
getStyleSet()
Returns the current style set used by the decoder.
| ||||||||||
void |
setStyleSet(CartoCSSStyleSet styleSet)
Sets the current style set used by the decoder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new TorqueTileDecoder given style.
styleSet | The style set used by decoder. |
---|
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 animation duration, in seconds.
Returns the frame count defined in the Torque style.
Returns maximum zoom level supported for by the decoder (or style).
Returns minimum zoom level supported for by the decoder (or style).
Returns the tile resolution, in pixels.
Returns the current style set used by the decoder.
Sets the current 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. |
---|