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
FieldsModifier and TypeFieldDescriptionprotected final StringThe pattern, inString.format(String, Object...)syntax, of the URI. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new instance.protectedOpenStreetMapTileSource(int maxZoom, String pattern, String displayName, String cachePrefix) Constructor for subclasses. -
Method Summary
Modifier and TypeMethodDescriptionfinal URIgetTileUri(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, waitMethods inherited from interface it.tidalwave.mapviewer.Projection
coordinatesToMapPoint, mapPointToCoordinates, metersPerPixelMethods 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