@JsType(isNative=true, namespace="Cesium", name="WebMercatorProjection") public class WebMercatorProjection extends MapProjection
Constructor and Description |
---|
WebMercatorProjection()
The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857.
|
WebMercatorProjection(Ellipsoid ellipsoid)
The map projection used by Google Maps, Bing Maps, and most of ArcGIS Online, EPSG:3857.
|
Modifier and Type | Method and Description |
---|---|
Ellipsoid |
ellipsoid()
Gets the Ellipsoid.
|
static double |
geodeticLatitudeToMercatorAngle(double latitude)
Converts a geodetic latitude in radians, in the range -PI/2 to PI/2, to a Mercator angle in the range -PI to PI.
|
static double |
MaximumLatitude()
The maximum latitude (both North and South) supported by a Web Mercator (EPSG:3857) projection.
|
static double |
mercatorAngleToGeodeticLatitude(double mercatorAngle)
Converts a Mercator angle, in the range -PI to PI, to a geodetic latitude in the range -PI/2 to PI/2.
|
project, project, unproject, unproject
@JsConstructor public WebMercatorProjection()
GeographicProjection
@JsConstructor public WebMercatorProjection(Ellipsoid ellipsoid)
ellipsoid
- The ellipsoid.GeographicProjection
@JsProperty(name="MaximumLatitude") public static double MaximumLatitude()
mercatorAngleToGeodeticLatitude(double)
@JsProperty(name="ellipsoid") public Ellipsoid ellipsoid()
ellipsoid
in class MapProjection
@JsMethod public static double geodeticLatitudeToMercatorAngle(double latitude)
latitude
- The geodetic latitude in radians.@JsMethod public static double mercatorAngleToGeodeticLatitude(double mercatorAngle)
mercatorAngle
- The angle to convert.Copyright © 2019. All rights reserved.