| | |
| | | // } |
| | | // }); |
| | | let position = viewer.scene.camera.pickEllipsoid(movement.position, viewer.scene.globe.ellipsoid); |
| | | let pointText="点" + new Date().format("yyyyMMddhhmmss"); |
| | | var entity=viewer.entities.add({ |
| | | name:"drawPointEntity", |
| | | position:position, |
| | |
| | | horizontalOrigin: Cesium.HorizontalOrigin.CENTER, |
| | | font: 'bold 14px Helvetica', |
| | | fillColor: Cesium.Color.WHITE, |
| | | text: "", |
| | | text: pointText, |
| | | disableDepthTestDistance: Number.POSITIVE_INFINITY, |
| | | heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, |
| | | distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 200000000.0) |
| | |
| | | viewer:viewer, |
| | | geometry:cartesian, |
| | | entity:entity, |
| | | id: "pop_" + entity.id |
| | | id: "pop_" + entity.id, |
| | | type:'image', |
| | | content:null, |
| | | }) |
| | | entity.title = "点" + new Date().format("yyyyMMddhhmmss"); |
| | | entity.title = pointText; |
| | | addTreeNode({ |
| | | "title": entity.title, |
| | | "id": entity.id, |