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, tile2lon
normalizeDegreeValue
public Tile findTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel, TileService service)
TileFactory
findTileAtCoordinate
in class TileFactory
lon
- 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)
TileFactory
findRightNeighbour
in class TileFactory
tile
- the reference tilepublic Tile findLowerNeighbour(Tile tile, TileService service)
TileFactory
findLowerNeighbour
in class TileFactory
tile
- the reference tileCopyright © 1996–2019 Geotools. All rights reserved.