From 36d70ba5cf8508509ad8a57e4bf53bf955fddcbf Mon Sep 17 00:00:00 2001
From: ZhAkps <46207005+ZhAkps@users.noreply.github.com>
Date: 星期二, 06 二月 2024 15:50:59 +0800
Subject: [PATCH] 更改引用方式

---
 src/utils/maptype.JS |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/utils/maptype.JS b/src/utils/maptype.JS
index 40a2bda..75e15ed 100644
--- a/src/utils/maptype.JS
+++ b/src/utils/maptype.JS
@@ -1,7 +1,7 @@
 import XYZ from "ol/source/XYZ";
 
-import WMTS from "ol/source/WMTS";
-import WMTSTileGrid from "ol/tilegrid/WMTS";
+// import WMTS from "ol/source/WMTS";
+// import WMTSTileGrid from "ol/tilegrid/WMTS";
 
 var topResolution = 896.0859375;
 var resolutions = [];
@@ -14,7 +14,7 @@
 let list = [
     {
         name: "2001",
-        value: new XYZ({
+        value: new ol.source.XYZ({
             url: "https://skyzt.bda.gov.cn/yzAdapter/Vector/?request=1&year=2001&type=Sate&level={z}&x={x}&y={y}",
         }),
         // value: new WMTS({

--
Gitblit v1.9.3