billboard :{
image : '../images/Cesium_Logo_overlay.png'
}
});
var pointDraged = null;
var leftDownFlag=false;
viewer.screenSpaceEventHandler.setInputAction(leftDownAction, Cesium.ScreenSpaceEventType.LEFT_DOWN);
viewer.screenSpaceEventHandler.setInputAction(leftUpAction, Cesium.ScreenSpaceEventType.LEFT_UP);
viewer.screenSpaceEventHandler.setInputAction(mouseMoveAction, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
function leftDownAction(e) {
console.log("左键按下");
var windowPosition = e.position;
pointDraged = viewer.scene.pick(windowPosition);//选取当前的entity
leftDownFlag = true;
if (pointDraged) {
// 如果为true,则允许用户平移地图。如果为假,相机将保持锁定在当前位置。此标志仅适用于2D和Columbus视图模式。
viewer.scene.screenSpaceCameraController.enableTranslate = false;//锁定相机
}
}
function leftUpAction(e) {
console.log