Interface TileLoaderFactory

All Known Implementing Classes:
CachedTileLoaderFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Factory creating TileLoaders for layers
Since:
8526
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openstreetmap.gui.jmapviewer.interfaces.TileLoader
    makeTileLoader(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, Map<String,String> headers, long minimumExpiryTime)
    Creates TileLoaderFactory - factory that creates tile loaders with all options already set
  • Method Details

    • makeTileLoader

      org.openstreetmap.gui.jmapviewer.interfaces.TileLoader makeTileLoader(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, Map<String,String> headers, long minimumExpiryTime)
      Creates TileLoaderFactory - factory that creates tile loaders with all options already set
      Parameters:
      listener - that will be notified, when tile has finished loading
      headers - that will be sent with requests to TileSource. null indicates none
      minimumExpiryTime - minimum expiry time
      Returns:
      TileLoader that uses both of above