public class OSMTileFactory extends WebMercatorTileFactory
| Constructor and Description |
|---|
OSMTileFactory() |
| Modifier and Type | Method and Description |
|---|---|
Tile |
findLowerNeighbour(Tile tile,
TileService service)
Finds the tile for a service at the given position and zoom level, which is immediately below
the the passed tile.
|
Tile |
findRightNeighbour(Tile tile,
TileService service)
Finds the tile for a service at the given position and zoom level, which is immediately to
the right of the passed tile.
|
Tile |
findTileAtCoordinate(double lon,
double lat,
ZoomLevel zoomLevel,
TileService service)
Finds the tile for a service at the given position and zoom level.
|
static double |
moveInRange(double value,
double min,
double max)
This method ensures that value is between min and max.
|
getExtentFromTileName, getZoomLevel, tile2lat, tile2lonnormalizeDegreeValuepublic Tile findTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel, TileService service)
TileFactoryfindTileAtCoordinate in class TileFactorylon - the longitudelat - the latitudezoomLevel - the zoom levelservice - the servicepublic static double moveInRange(double value,
double min,
double max)
value - min - max - public Tile findRightNeighbour(Tile tile, TileService service)
TileFactoryfindRightNeighbour in class TileFactorytile - the reference tilepublic Tile findLowerNeighbour(Tile tile, TileService service)
TileFactoryfindLowerNeighbour in class TileFactorytile - the reference tileCopyright © 1996–2019 Geotools. All rights reserved.