Cesium获取世界坐标

var handler= new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
    handler.setInputAction(function (event) {
        var position = viewer.scene.camera.pickEllipsoid(event.position, viewer.scene.globe.ellipsoid);
        console.log("[x:"+position.x+", y:"+position.y+", z:"+position.z+"]");
    }, Cesium.ScreenSpaceEventType.LEFT_CLICK);

你可能感兴趣的:(Cesium获取世界坐标)