new Cesium.WebMercatorProjection(ellipsoid)

Google Maps,Bing Maps使用的地图投影,以及ArcGIS Online的大部分, NT 0 :3857. 这个 projection use longitude and latitude expressed with the WGS84 and transforms them to Mercator using 球形(而不是椭圆形)方程.
Name Type Default Description
ellipsoid Ellipsoid Ellipsoid.WGS84 optional The ellipsoid.
See:

Members

static Cesium.WebMercatorProjection.MaximumLatitude : number

由 Web Mercator 支持的最大纬度( 南北) (-EPSG :3857)投影. 从技术上讲,Mercator投影是被定义的 任何纬度最高(但不包括)90度,但有道理 因为它随着纬度的增大而呈指数增长. 这种特定的切入值背后的逻辑,即: Google地图,宾地图,和Esri, 是它做投影 方块。 也就是说,矩形在X和Y方向上是相等的. 通过调用: WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI)

readonly ellipsoid : Ellipsoid

Gets the Ellipsoid.

Methods

static Cesium.WebMercatorProjection.geodeticLatitudeToMercatorAngle(latitude)number

将−PI/2 到 PI/2 之间的弧度大地纬度转换为Mercator 角度 - PI 到 PI.
Name Type Description
latitude number 弧度的大地纬度.
Returns:
麦卡托的角度.

static Cesium.WebMercatorProjection.mercatorAngleToGeodeticLatitude(mercatorAngle)number

将 Mercator 角度,在范围 - PI 中转换为 PI, 转换为大地纬度 在范围 -PI/2 到PI/2.
Name Type Description
mercatorAngle number 转换角度 .
Returns:
弧度的大地纬度.

project(cartographic, result)Cartesian3

将弧度的大地椭圆坐标转换为等效的Web Mercator X, Y, Z coordinates expressed in meters and returned in a Cartesian3. The height 将被复制到 Z 坐标.
Name Type Description
cartographic Cartographic 绘图坐标为弧度.
result Cartesian3 optional 复制结果的示例,或者如果 应创建新实例.
Returns:
等效的网商X,Y,Z坐标,以米计.

unproject(cartesian, result)Cartographic

Converts Web Mercator X, Y coordinates, expressed in meters, to a Cartographic 包含大地椭圆坐标。 Z 坐标未修改为 height.
Name Type Description
cartesian Cartesian3 网络商笛卡尔的位置以米高(z)解射.
result Cartographic optional 复制结果的示例,或者如果 应创建新实例.
Returns:
等效地图坐标.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.