From 8f5b493fa963a056888c89fa8b7f32fa980510e3 Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期五, 21 十月 2022 18:23:24 +0800
Subject: [PATCH] 轨迹查询/图层显示/撒点高度等
---
js/function.js | 43 +++++++++++++++++++++++--------------------
1 files changed, 23 insertions(+), 20 deletions(-)
diff --git a/js/function.js b/js/function.js
index 02a414a..51dce5d 100644
--- a/js/function.js
+++ b/js/function.js
@@ -233,6 +233,7 @@
function mask_selection(regionCode){
if(regionCode == 0){
geoJsonLayer = new mars3d.layer.GeoJsonLayer({
+ id:9999,
url: "./data/shanghai.json",
mask: true, //鏍囪瘑涓洪伄缃╁眰銆愰噸鐐瑰弬鏁般��
symbol: {
@@ -246,29 +247,31 @@
arcType: Cesium.ArcType.GEODESIC,
clampToGround: true,
},
- },
- zIndex: 99999999999,
+ }
});
map.addLayer(geoJsonLayer);
// return
+ }else{
+ //geojson 鍚勮鏀垮尯杈圭晫绾�
+ geoJsonLayer = new mars3d.layer.GeoJsonLayer({
+ id:9999,
+ url: "./data/"+regionCode+".geojson",
+ mask: true, //鏍囪瘑涓洪伄缃╁眰銆愰噸鐐瑰弬鏁般��
+ symbol: {
+ styleOptions: {
+ fill: true,
+ color: "rgb(2,26,79)",
+ outline: true,
+ outlineColor: "#39E09B",
+ outlineWidth: 3,
+ outlineOpacity: 0.5,
+ arcType: Cesium.ArcType.GEODESIC,
+ clampToGround: true,
+ },
+ },
+});
+map.addLayer(geoJsonLayer);
}
- //geojson 鍚勮鏀垮尯杈圭晫绾�
- geoJsonLayer = new mars3d.layer.GeoJsonLayer({
- url: "./data/"+regionCode+".geojson",
- mask: true, //鏍囪瘑涓洪伄缃╁眰銆愰噸鐐瑰弬鏁般��
- symbol: {
- styleOptions: {
- fill: true,
- color: "rgb(2,26,79)",
- outline: true,
- outlineColor: "#39E09B",
- outlineWidth: 3,
- outlineOpacity: 0.5,
- arcType: Cesium.ArcType.GEODESIC,
- clampToGround: true,
- },
- },
- });
- map.addLayer(geoJsonLayer);
+
}
--
Gitblit v1.9.1