From 7e6b37afd1295c71bca1de595426330aff88420d Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期一, 08 一月 2024 09:55:53 +0800
Subject: [PATCH] 代码提交

---
 src/components/map/history.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/map/history.vue b/src/components/map/history.vue
index b7c4e77..cbac062 100644
--- a/src/components/map/history.vue
+++ b/src/components/map/history.vue
@@ -34,20 +34,21 @@
     initMap() {
       var l1 = new Tile({
         source: new XYZ({
-          url: "http://t3.tianditu.com/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk=94a34772eb88317fcbf8428e10448561"// 娉ㄨ
+          url: layerData.config.olTdtSl + layerData.config.tdtToken
         })
       });
       var l2 = new Tile({
         source: new XYZ({
-          url: "http://t3.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=94a34772eb88317fcbf8428e10448561"  // 琛屾斂鍖哄垝
+          url: layerData.config.olTdtBZ + layerData.config.tdtToken
         })
       });
       window.map = new Map({
         target: "mapContainer",
         layers: [],
         view: new View({
-          center: olProj.fromLonLat([108.945951, 34.465262]),
+          center: [105.02, 34.9],
           zoom: 5,
+          projection: "EPSG:4326",
         }),
         controls: [],
       });

--
Gitblit v1.9.3