Constructor
new SphMercProjection()
Create a SphMercProjection.
- Source:
Methods
getID() → {string}
Return the projection's ID.
- Source:
Returns:
The value "epsg:3857".
- Type
- string
project(lon, lat) → {Array}
Project a longitude and latitude into Spherical Mercator.
Parameters:
Name | Type | Description |
---|---|---|
lon |
number | the longitude. |
lat |
number | the latitude. |
- Source:
Returns:
Two-member array containing easting and northing.
- Type
- Array
unproject(projected) → {Array}
Unproject a Spherical Mercator easting and northing.
Parameters:
Name | Type | Description |
---|---|---|
projected |
Array | Two-member array containing easting and northing |
- Source:
Returns:
Two-member array containing longitude and latitude
- Type
- Array