From 24b0b99f7125880bdee544caec0bd68d372050ab Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 07 Dec 2023 16:17:51 +0800
Subject: [PATCH] 更换底图

---
 src/components/map/index.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 8112c63..262de91 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -47,17 +47,19 @@
 let campusLayers = [
     {
         key: 1,
-        tileUrl: "https://fkxt.jxstnu.edu.cn/changjing/arcgis/rest/services/ksd1/MapServer/tile/{z}/{y}/{x}",
-        center: [112.63716735643777, -0.087080937773012637833],
-        resolution: 0.00014276766034981682,
-        origin: [-400.0, 399.9999999999998],
+        tileUrl: "https://fkxt.jxstnu.edu.cn/changjing/arcgis/rest/services/ksd1206/MapServer/tile/{z}/{y}/{x}",
+        center: [10800, -4900],
+        resolution: 4.233341800016934,
+        origin: [-5123200.0, 10002100],
+        projection: 'EPSG:4548',
         resolutions: [
-            0.00019035688046642243, 0.00014276766034981682, 0.00009517844023321122,
-            0.00004758922011660561,
+            16.933367200067735, 8.466683600033868, 4.233341800016934,
+            2.116670900008467, 1.0583354500042335, 0.5291677250021167,
+            0.26458386250105836
         ],
         fullExtent: [
-            112.51302281804038, -0.17416638494176828, 112.76131189483516,
-            0.000004509395743004334,
+            -0.5, -11468.5, 18506.5,
+            0.5,
         ],
         polygonUrl: 'https://fkxt.jxstnu.edu.cn/changjing/lkarcgisapp'
     },
@@ -68,6 +70,7 @@
         center: [115.79624983, 28.6416099],
         resolution: 0.000007138383017490841,
         origin: [-400.0, 400.0],
+        projection: '4548',
         resolutions: [
             0.000014276766034981682, 0.000007138383017490841, 0.00000475892201166056,
             0.00000237946100583028,
@@ -398,7 +401,7 @@
             // 瓦片数据源
             const tileArcGISXYZ = new XYZ({
                 tileGrid: tileGrid,
-                projection: "EPSG:4326",
+                // projection: curCampus.projection,
                 url: curCampus.tileUrl,
             })
 
@@ -428,7 +431,7 @@
                 // 初始化中心点坐标
                 center: curCampus.center,
                 resolution: curCampus.resolution,
-                projection: "EPSG:4326",
+                // projection: curCampus.projection,
                 extent: curCampus.fullExtent,
             }))
         }

--
Gitblit v1.9.3