From e1c3d0f9135e9790fe1aa77a0927c29844f78117 Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期四, 23 十二月 2021 10:06:42 +0800
Subject: [PATCH] add mask
---
js/function.js | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/js/function.js b/js/function.js
index 062bfe1..5424962 100644
--- a/js/function.js
+++ b/js/function.js
@@ -183,3 +183,30 @@
}
}
+function mask_selection(userid){
+
+ //geojson 鍚勮鏀垮尯杈圭晫绾�
+ if(userid != null || userid != undefined){
+ geoJsonLayer = new mars3d.layer.GeoJsonLayer({
+ url: "./data/"+userid+".geojson",
+ mask: true, //鏍囪瘑涓洪伄缃╁眰銆愰噸鐐瑰弬鏁般��
+ symbol: {
+ styleOptions: {
+ fill: true,
+ color: "rgb(2,26,79)",
+ opacity: 0.9,
+ outline: true,
+ outlineColor: "#39E09B",
+ outlineWidth: 8,
+ outlineOpacity: 0.8,
+ arcType: Cesium.ArcType.GEODESIC,
+ clampToGround: true,
+ },
+ },
+ });
+ map.addLayer(geoJsonLayer);
+ }else{
+ return
+ }
+}
+
--
Gitblit v1.9.1