From e9e4568b65b5d7486b6e03e31826d462de61fd3f Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期六, 11 九月 2021 16:16:53 +0800
Subject: [PATCH] 国控
---
js/function.js | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/js/function.js b/js/function.js
index 4eae02d..62a6807 100644
--- a/js/function.js
+++ b/js/function.js
@@ -55,9 +55,11 @@
layer_1001_guokong = new mars3d.layer.DivLayer({
name: '鍥芥帶鐐�',
pid: 99, //鍥惧眰绠$悊 涓娇鐢紝鐖惰妭鐐筰d
- show: false
+ show: false,
+
});
map.addLayer(layer_1001_guokong);
+
layer_1001_guokong.on(mars3d.EventType.click, function (event) {
console.log("鐩戝惉layer锛屽崟鍑讳簡鐭㈤噺瀵硅薄", event);
@@ -101,15 +103,35 @@
position: Cesium.Cartesian3.fromDegrees(jd, wd),
style: {
html: '<div class="mars3d-animation-point" style="color:' + clr + ';"><p></p></div>',
- //html: '<div><p><img src="img/marker/mark1.png"></p></div>',
+ // html: '<div><p><img src="img/marker/mark1.png"></p></div>',
+ // scaleByDistance_far: 1100, // 鐭崐杞� 鍗婂緞
+ // scaleByDistance_near: 2000, //闀垮崐杞� 鍗婂緞
+ // height: 200,
+ // material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.CircleWave, {
+ // color: "#ffff00",
+ // count: 3,
+ // speed: 20,
+ // }),
+ // highlight: {
+ // type: "click",
+ // diffHeight: 600,
+ // material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.CircleWave, {
+ // color: "#ffff00",
+ // count: 3,
+ // speed: 20,
+ // }),
+ // },
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 200000), //鎸夎璺濊窛绂绘樉绀�
},
+
attr: item,
});
layer_1001_guokong.addGraphic(graphic);
}
});
+
+
}
function addRoadLayer() {
--
Gitblit v1.9.1