Package it.tidalwave.mapviewer
Class OpenStreetMapTileSource
java.lang.Object
it.tidalwave.mapviewer.spi.TileSourceSupport
it.tidalwave.mapviewer.OpenStreetMapTileSource
- All Implemented Interfaces:
Projection
,TileSource
- Direct Known Subclasses:
OpenTopoMapTileSource
The OpenStreetMap source of map tiles.
- Author:
- Fabrizio Giudici
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
The pattern, inString.format(String, Object...)
syntax, of the URI. -
Constructor Summary
ModifierConstructorDescriptionCreates a new instance.protected
OpenStreetMapTileSource
(int maxZoom, String pattern, String displayName, String cachePrefix) Constructor for subclasses. -
Method Summary
Modifier and TypeMethodDescriptionfinal URI
getTileUri
(int column, int row, int zoom) Returns the URI for the tile at the given position with the given zoom level.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.tidalwave.mapviewer.Projection
coordinatesToMapPoint, mapPointToCoordinates, metersPerPixel
Methods inherited from interface it.tidalwave.mapviewer.TileSource
getCachePrefix, getDefaultZoomLevel, getDisplayName, getMaxZoomLevel, getMinZoomLevel, getTileSize
-
Field Details
-
pattern
The pattern, inString.format(String, Object...)
syntax, of the URI.
-
-
Constructor Details
-
OpenStreetMapTileSource
public OpenStreetMapTileSource()Creates a new instance. -
OpenStreetMapTileSource
protected OpenStreetMapTileSource(int maxZoom, @Nonnull String pattern, @Nonnull String displayName, @Nonnull String cachePrefix) Constructor for subclasses.- Parameters:
maxZoom
- the maximum allowed zoom levelpattern
- the URI patterndisplayName
- the display name of the providercachePrefix
- the prefix for the cache
-
-
Method Details