dvgis / dc-sdk

DC-SDK is based on the open source project Cesium for the second development of two three-dimensional WebGis application framework , the framework optimizes the use of Cesium and adds some additional features , designed for developers to quickly build WebGis application.🌎
http://dc.dvgis.cn
Apache License 2.0
807 stars 254 forks source link

fix: Parse.parsePosition 增加转换类型支持 #157

Closed ShenWeiQun closed 1 year ago

ShenWeiQun commented 1 year ago

增加支持 Cesium.Cartesian3Cesium.Cartographic 类型的数据直接转换为Position 格式 方便以下类似情况的调用

// 情况1
const item = new Cesium.Cartesian3()
const point = new DC.Point(item)
// 情况2
const item = new Cesium.Cartographic()
const point = new DC.Point(item)