Package it.tidalwave.mapviewer
Interface TileSource
- All Superinterfaces:
Projection
- All Known Implementing Classes:
OpenStreetMapTileSource
,OpenTopoMapTileSource
,TileSourceSupport
This class represent a source for
Tile
s. A source is able to convert coordinates expressed as (latitude, longitude) into rectified (x,y)
cartesian coordinates for a map, as well as to provide the URL for a map tile that contains a given pair of rectified coordinates.- Author:
- Fabrizio Giudici
-
Method Summary
Modifier and TypeMethodDescriptionReturns a prefix unique to this source to be used by the local tile cache.int
Returns the default zoom level of this source.Returns the display name of this object.int
Returns the maximum zoom level of this source.int
Returns the minimum zoom level of this source.int
Returns the size of the tiles created by this source.getTileUri
(int column, int row, int zoom) Returns the URI for the tile at the given position with the given zoom level.Methods inherited from interface it.tidalwave.mapviewer.Projection
coordinatesToMapPoint, mapPointToCoordinates, metersPerPixel
-
Method Details
-
getDisplayName
String getDisplayName()Returns the display name of this object..- Returns:
- the display name of this object
-
getTileUri
Returns the URI for the tile at the given position with the given zoom level..- Parameters:
column
- the tile columnrow
- the tile rowzoom
- the zoom level- Returns:
- the URI for the tile at the given position with the given zoom level
-
getMaxZoomLevel
int getMaxZoomLevel()Returns the maximum zoom level of this source..- Returns:
- the maximum zoom level of this source
-
getMinZoomLevel
int getMinZoomLevel()Returns the minimum zoom level of this source..- Returns:
- the minimum zoom level of this source
-
getDefaultZoomLevel
int getDefaultZoomLevel()Returns the default zoom level of this source..- Returns:
- the default zoom level of this source
-
getCachePrefix
Returns a prefix unique to this source to be used by the local tile cache..- Returns:
- a prefix unique to this source to be used by the local tile cache
-
getTileSize
int getTileSize()Returns the size of the tiles created by this source..- Returns:
- the size of the tiles created by this source
-