![]() |
Online Maps
v3
|
The base class of map projection. More...
Public Member Functions | |
abstract void | CoordinatesToTile (double lng, double lat, int zoom, out double tx, out double ty) |
Converts geographic coordinates to tile coordinates. More... | |
abstract void | TileToCoordinates (double tx, double ty, int zoom, out double lng, out double lat) |
Converts tile coordinates to geographic coordinates. More... | |
Static Public Attributes | |
const double | DEG2RAD = Math.PI / 180 |
Degrees-to-radians conversion constant. More... | |
const double | PI2 = Math.PI * 2 |
PI * 2 More... | |
const double | PI4 = Math.PI * 4 |
PI * 4 More... | |
const double | RAD2DEG = 180 / Math.PI |
Radians-to-degrees conversion constant. More... | |
The base class of map projection.
|
pure virtual |
Converts geographic coordinates to tile coordinates.
lng | Longitude |
lat | Latitude |
zoom | Zoom |
tx | Tile X |
ty | Tile Y |
Implemented in OnlineMapsProjectionWGS84, and OnlineMapsProjectionSphericalMercator.
|
pure virtual |
Converts tile coordinates to geographic coordinates.
tx | Tile X |
ty | Tile Y |
zoom | Zoom |
lng | Longitude |
lat | Latitude |
Implemented in OnlineMapsProjectionWGS84, and OnlineMapsProjectionSphericalMercator.
|
static |
Degrees-to-radians conversion constant.
|
static |
PI * 2
|
static |
PI * 4
|
static |
Radians-to-degrees conversion constant.