From ab8f3297f7c8243d486c9da0900e4f813b2ea2df Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期三, 27 十一月 2024 17:16:46 +0800 Subject: [PATCH] 功能更新 --- src/views/visualization/mapView.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/visualization/mapView.vue b/src/views/visualization/mapView.vue index 270738d..9affe4e 100644 --- a/src/views/visualization/mapView.vue +++ b/src/views/visualization/mapView.vue @@ -52,6 +52,9 @@ } // 榛樿璁剧疆搴曞浘 this.addImageLayer(); + + + }, addImageLayer() { const baseLayer = mapData.baseLayer; @@ -70,7 +73,7 @@ }, setdefaultPerspective() { mapConfig.sertCameraTo(mapData.defaultPerspective); - if (config.baseModel.url) { + if (config.baseModel.flag) { mapServer.addLayer(config.baseModel); } this.getSelectLayers(); @@ -84,7 +87,7 @@ if (item.cnName != "閰嶇綉绾�") { mapServer.addLayer(item) } - } + } }) this.$nextTick(() => { @@ -97,7 +100,7 @@ earthCtrl.factory.createPathLayer({ url: road, // color: "#00FA9A", //绾跨殑棰滆壊 - color: "#ff0000", //绾跨殑棰滆壊 + color: "#ff0000", //绾跨殑棰滆壊 width: 5.0, //绾跨殑瀹藉害 pointColor: "#FFFFFF", //绉诲姩鐐圭殑棰滆壊 speed: 1, -- Gitblit v1.9.3