WebMercatorProjection

external class WebMercatorProjection(val ellipsoid: Ellipsoid = definedExternally)(source)

The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857. This projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using the spherical (rather than ellipsoidal) equations.

See also

Constructors

Link copied to clipboard
constructor(ellipsoid: Ellipsoid = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The ellipsoid. Default value - Ellipsoid.WGS84

Functions

Link copied to clipboard
fun project(cartographic: Cartographic, result: Cartesian3? = definedExternally): Cartesian3

Converts geodetic ellipsoid coordinates, in radians, to the equivalent Web Mercator X, Y, Z coordinates expressed in meters and returned in a Cartesian3. The height is copied unmodified to the Z coordinate.

Link copied to clipboard
fun unproject(cartesian: Cartesian3, result: Cartographic? = definedExternally): Cartographic

Converts Web Mercator X, Y coordinates, expressed in meters, to a Cartographic containing geodetic ellipsoid coordinates. The Z coordinate is copied unmodified to the height.