|
@@ -101,6 +101,45 @@
|
|
|
that.createRightClickDescription();
|
|
|
},
|
|
|
/**
|
|
|
+ * 地图落点
|
|
|
+ */
|
|
|
+ setMarkersRadius(makerList){
|
|
|
+ let that = this;
|
|
|
+ that.handler = new Cesium.ScreenSpaceEventHandler(this.scene.canvas);
|
|
|
+ clearInterval(that.aac);
|
|
|
+ for (let i in makerList) {
|
|
|
+ let longitude = makerList[i].lng;
|
|
|
+ let latitude = makerList[i].lat;
|
|
|
+ that.viewer.entities.add({
|
|
|
+ name:"",
|
|
|
+ position: Cesium.Cartesian3.fromDegrees(longitude, latitude),
|
|
|
+ billboard: {
|
|
|
+ image: iconList[makerList[i].icon],
|
|
|
+ width: 48,
|
|
|
+ height: 48,
|
|
|
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
+ disableDepthTestDistance:Number.POSITIVE_INFINITY
|
|
|
+ },
|
|
|
+ description: makerList[i].bindPopupHtml,
|
|
|
+ click: makerList[i].click,
|
|
|
+ parameter: makerList[i].parameter,
|
|
|
+ ellipse: {
|
|
|
+ semiMinorAxis:makerList[i].radius,
|
|
|
+ semiMajorAxis: makerList[i].radius,
|
|
|
+ height: 0.0,
|
|
|
+ material: Cesium.Color.RED.withAlpha(0),
|
|
|
+ outline: true,
|
|
|
+ outlineColor: Cesium.Color.BLUE.withAlpha(0.5),
|
|
|
+ outlineWidth: 2,
|
|
|
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ that.viewer.scene.globe.depthTestAgainstTerrain=false;
|
|
|
+ that.createLeftClickDescription();
|
|
|
+ that.createRightClickDescription();
|
|
|
+ },
|
|
|
+ /**
|
|
|
*鼠标左击事件是原来的气泡
|
|
|
*/
|
|
|
createLeftClickDescription() {
|