Class VectorTileDecoder

java.lang.Object
com.massifmaps.vectortiles.VectorTileDecoder
Direct Known Subclasses:
MBVectorTileDecoder, TorqueTileDecoder

public class VectorTileDecoder extends Object
Abstract base class for vector tile decoders.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • addFallbackFont

      public void addFallbackFont(BinaryData fontData)
      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()