MapProjection

abstract new Cesium.MapProjection()

定义大地椭球体坐标 (Cartographic) 如何投影到 平面地图,如 Cesium 的 2D 和 Columbus View 模式。
See:

Members

获取 Ellipsoid

Methods

project(cartographic, result)Cartesian3

Cartographic 坐标(以弧度为单位)投影到特定于投影的地图坐标(以米为单位)。
Name Type Description
cartographic Cartographic 要投影的坐标。
result Cartesian3 optional 要将结果复制到的实例。 如果该参数为 undefined,则创建并返回一个新实例。
Returns:
投影坐标。 如果 result 参数不是 undefined,则 坐标将复制到那里,并返回该实例。 否则,新实例为 created 并返回。

unproject(cartesian, result)Cartographic

取消投影特定地图 Cartesian3 坐标(以米为单位)到 Cartographic 坐标,以弧度为单位。
Name Type Description
cartesian Cartesian3 高度 (z) 取消投影的笛卡尔位置,以米为单位。
result Cartographic optional 要将结果复制到其中的实例。 如果该参数为 undefined,则创建并返回一个新实例。
Returns:
未投影的坐标。 如果 result 参数不是 undefined,则 坐标将复制到那里,并返回该实例。 否则,新实例为 created 并返回。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.