Package org.geotools.tile.impl.osm
Class OSMService
- Object
-
- TileService
-
- WebMercatorTileService
-
- OSMService
-
- All Implemented Interfaces:
ImageLoader
public class OSMService extends WebMercatorTileService
The tile service for the OpenStreetMap family.- Since:
- 12
- Author:
- Tobias Sauerwein, Ugo Taddei
-
-
Field Summary
-
Fields inherited from class WebMercatorTileService
MAX_LATITUDE, MAX_LONGITUDE, MIN_LATITUDE, MIN_LONGITUDE, WEB_MERCATOR_CRS
-
Fields inherited from class TileService
cacheSize
-
-
Constructor Summary
Constructors Constructor Description OSMService(String name, String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getScaleList()Returns a list that represents a mapping between zoom-levels and map scale.TileFactorygetTileFactory()Returns the TileFactory which is used to call the method getTileFromCoordinate().TileIdentifieridentifyTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel)Returns tile identifier for the tile at the given coordinate-
Methods inherited from class WebMercatorTileService
getBounds, getProjectedTileCrs
-
Methods inherited from class TileService
createSafeEnvelopeInWGS84, findTilesInExtent, getBaseUrl, getHttpClient, getMaxZoomLevel, getMinZoomLevel, getName, getTileCrs, getTileHeight, getTileWidth, getZoomLevelFromMapScale, getZoomLevelToUse, loadImageTileImage, obtainTile, toString
-
-
-
-
Method Detail
-
getScaleList
public double[] getScaleList()
Description copied from class:TileServiceReturns a list that represents a mapping between zoom-levels and map scale.Array index: zoom-level Value at index: map scale High zoom-level -> more detailed map Low zoom-level -> less detailed map
- Specified by:
getScaleListin classTileService- Returns:
- mapping between zoom-levels and map scale
-
getTileFactory
public TileFactory getTileFactory()
Description copied from class:TileServiceReturns the TileFactory which is used to call the method getTileFromCoordinate().- Specified by:
getTileFactoryin classTileService
-
identifyTileAtCoordinate
public TileIdentifier identifyTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel)
Description copied from class:TileServiceReturns tile identifier for the tile at the given coordinate- Specified by:
identifyTileAtCoordinatein classTileService
-
-