From 250b60037bf32f7de79e1b10c011e757957d9950 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期二, 21 三月 2023 09:19:13 +0800
Subject: [PATCH] 底图切换修改

---
 src/views/Tools/AddOnlineMap.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/views/Tools/AddOnlineMap.vue b/src/views/Tools/AddOnlineMap.vue
index ee4f10e..151d582 100644
--- a/src/views/Tools/AddOnlineMap.vue
+++ b/src/views/Tools/AddOnlineMap.vue
@@ -130,7 +130,7 @@
         list: [{
           name: "Cesium褰卞儚",
           image: require("../../assets/img/imageLayer/tdmap_image.jpg"),
-
+          urls: "https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
         },],
       },
 
@@ -258,6 +258,15 @@
 
       this.mapCollection = mapCollection;
       if (mapCollection.sourceType === "cesium") {
+        window.olBaseMapLayer = new TileLayer({
+          title: "楂樺痉鍦板浘",
+          source: new XYZ({
+            url: map.urls,
+            wrapX: false
+          }),
+          zIndex: -1
+        });
+        window.map.addLayer(window.olBaseMapLayer);
         return;
       } else if (mapCollection.sourceType === "tdmap") {
         var tokne = mapCollection.tokne;

--
Gitblit v1.9.3