Class TileStoreLayer

    • Constructor Detail

      • TileStoreLayer

        public TileStoreLayer​(TileCache tileCache,
                              IMapViewPosition mapViewPosition,
                              org.mapsforge.core.graphics.GraphicFactory graphicFactory,
                              boolean isTransparent)
    • Method Detail

      • createJob

        protected Job createJob​(org.mapsforge.core.model.Tile tile)
        Specified by:
        createJob in class TileLayer<Job>
      • isTileStale

        protected boolean isTileStale​(org.mapsforge.core.model.Tile tile,
                                      org.mapsforge.core.graphics.TileBitmap bitmap)
        Whether the tile is stale and should be refreshed.

        This method is not needed for a TileStoreLayer and will always return false. Both arguments can be null.

        Specified by:
        isTileStale in class TileLayer<Job>
        Parameters:
        tile - A tile.
        bitmap - The bitmap for tile currently held in the layer's cache.