cesium獲取czml模型所在位置

viewer.dataSources.add(Cesium.CzmlDataSource.load(czml)).then(function (ds) {
            setInterval(function() {
                var vehicleEntity = ds.entities.getById('path');// 獲取id獲取czml
                var positionProperty = vehicleEntity.position;// 獲取czml當前所在位置
                console.log(positionProperty._property._interpolationResult);// 笛卡爾座標
            }, 3000);
        });

 

發佈了99 篇原創文章 · 獲贊 15 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章