Package com.massifmaps.vectortiles
Class VectorTileDecoder
java.lang.Object
com.massifmaps.vectortiles.VectorTileDecoder
- Direct Known Subclasses:
MBVectorTileDecoder,TorqueTileDecoder
Abstract base class for vector tile decoders.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFallbackFont(BinaryData fontData) Adds a fallback font.booleanChecks if this object is equal to the specified object.intReturns maximum zoom level supported for by the decoder (or style).intReturns minimum zoom level supported for by the decoder (or style).inthashCode()Returns the hash value of this object.voidNotifies listeners that the decoder parameters have changed.void
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
addFallbackFont
Adds a fallback font. The font should be TTF or OTF font. It is used for glyphs not found in style defined fonts.- Parameters:
fontData- The font binary.
-
getMinZoom
public int getMinZoom()Returns minimum zoom level supported for by the decoder (or style).- Returns:
- Minimum supported zoom level.
-
getMaxZoom
public int getMaxZoom()Returns maximum zoom level supported for by the decoder (or style).- Returns:
- Maximum supported zoom level.
-
notifyDecoderChanged
public void notifyDecoderChanged()Notifies listeners that the decoder parameters have changed. Action taken depends on the implementation of the
listeners, but generally all cached tiles will be reloaded. -
notifyDecoderRefreshed
public void notifyDecoderRefreshed()
-