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 TypeMethodDescriptionorg.openstreetmap.gui.jmapviewer.interfaces.TileLoadermakeTileLoader(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 loadingheaders- that will be sent with requests to TileSource.nullindicates noneminimumExpiryTime- minimum expiry time- Returns:
- TileLoader that uses both of above
-