Class MVTTile

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  MVTTile.LayerShower
      A class used to set the layers that an MVTTile will show.
      static interface  MVTTile.TileListener
      A class that can be notified that a tile has finished loading
    • Constructor Summary

      Constructors 
      Constructor Description
      MVTTile​(org.openstreetmap.gui.jmapviewer.interfaces.TileSource source, int xtile, int ytile, int zoom)
      Create a new Tile
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTileLoaderFinisher​(MVTTile.TileListener listener)
      Add a tile loader finisher listener
      BBox getBBox()
      Fetches the bounding box of the primitive.
      VectorDataStore getData()
      Get the datastore for this tile
      int getExtent()
      Get the extent of the tile (in pixels)
      java.util.Collection<Layer> getLayers()
      Get the layers for this vector tile
      void loadImage​(java.io.InputStream inputStream)  
      • Methods inherited from class org.openstreetmap.gui.jmapviewer.Tile

        equals, finishLoading, getErrorMessage, getImage, getKey, getMetadata, getSource, getStatus, getTileKey, getTileSource, getTileXY, getUrl, getValue, getXtile, getYtile, getZoom, hasError, hashCode, initLoading, isLoaded, isLoading, loadingCanceled, loadPlaceholderFromCache, paint, paint, putValue, setError, setError, setImage, setLoaded, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MVTTile

        public MVTTile​(org.openstreetmap.gui.jmapviewer.interfaces.TileSource source,
                       int xtile,
                       int ytile,
                       int zoom)
        Create a new Tile
        Parameters:
        source - The source of the tile
        xtile - The x coordinate for the tile
        ytile - The y coordinate for the tile
        zoom - The zoom for the tile
    • Method Detail

      • loadImage

        public void loadImage​(java.io.InputStream inputStream)
                       throws java.io.IOException
        Overrides:
        loadImage in class org.openstreetmap.gui.jmapviewer.Tile
        Throws:
        java.io.IOException
      • getLayers

        public java.util.Collection<LayergetLayers()
        Description copied from interface: VectorTile
        Get the layers for this vector tile
        Specified by:
        getLayers in interface VectorTile
        Returns:
        A collection of layers
      • getExtent

        public int getExtent()
        Description copied from interface: VectorTile
        Get the extent of the tile (in pixels)
        Specified by:
        getExtent in interface VectorTile
        Returns:
        The tile extent (pixels)