java.lang.Object | |
↳ | com.carto.utils.TileUtils |
A helper class for mapping coordinates to tiles and back.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static MapTile |
calculateMapTile(MapPos mapPos, int zoom, Projection proj)
Calculates the map tile corresponding to specified point and zoom level.
| ||||||||||
static MapBounds |
calculateMapTileBounds(MapTile mapTile, Projection proj)
Calculates bounds for the given map tile.
| ||||||||||
static MapPos |
calculateMapTileOrigin(MapTile mapTile, Projection proj)
Calculates origin coordinates for the given map tile.
| ||||||||||
synchronized void | delete() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Calculates the map tile corresponding to specified point and zoom level.
mapPos | Coordinates for the point. |
---|---|
zoom | Zoom level for the tile. |
proj | The projection to use for tile and point. |
Calculates bounds for the given map tile.
mapTile | The map tile to use. |
---|---|
proj | The projection to use for bounds. |
Calculates origin coordinates for the given map tile.
mapTile | The map tile to use. |
---|---|
proj | The projection to use for origin. |