From 7e462da06de59c01b1e589de10600e2df6b8ad2f Mon Sep 17 00:00:00 2001 From: baizonghao <1719256278@qq.com> Date: 星期二, 07 三月 2023 17:11:53 +0800 Subject: [PATCH] 地图访问地址修改 --- src/utils/map.js | 8 ++++---- vue.config.js | 4 ++-- src/components/map/leafletMap.vue | 2 +- src/views/systemSetting/device/grid/components/components/leafletMap.vue | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/map/leafletMap.vue b/src/components/map/leafletMap.vue index d53bd34..b75ffa7 100644 --- a/src/components/map/leafletMap.vue +++ b/src/components/map/leafletMap.vue @@ -12,7 +12,7 @@ map_point: { x: "119.27179890", y: "28.59027084" }, map_zoom: 15, mapUrl: - "http://117.139.13.157:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}", + "http://172.28.194.179:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}", // mapUrls: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', // mapUrls: "http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}", option: { diff --git a/src/utils/map.js b/src/utils/map.js index a881ca9..a50688b 100644 --- a/src/utils/map.js +++ b/src/utils/map.js @@ -3,8 +3,8 @@ *鍒涘缓鍦板浘瀹炰緥 */ const createrMap = (name, option) => { - var mapofflineurl_image = 'http://117.139.13.157:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}'; - var mapofflineurl_road = 'http://117.139.13.157:41005/tilermap/rest/services/mapserver/baidu-road-db/{z}/{x}/{y}'; + var mapofflineurl_image = 'http://172.28.194.179:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}'; + var mapofflineurl_road = 'http://172.28.194.179:41005/tilermap/rest/services/mapserver/baidu-road-db/{z}/{x}/{y}'; var layer1 = L.tileLayer.chinaProvider('Baidu.NormalOffline.Map', { OfflineUrl: mapofflineurl_image @@ -29,8 +29,8 @@ *浣跨敤chinatmsproviders鎻掍欢鍒涘缓 */ const createrChinatm = (map, url, option) => { - var mapofflineurl_image = 'http://117.139.13.157:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}'; - var mapofflineurl_road = 'http://117.139.13.157:41005/tilermap/rest/services/mapserver/baidu-road-db/{z}/{x}/{y}'; + var mapofflineurl_image = 'http://172.28.194.179:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}'; + var mapofflineurl_road = 'http://172.28.194.179:41005/tilermap/rest/services/mapserver/baidu-road-db/{z}/{x}/{y}'; var layer1 = L.tileLayer.chinaProvider('Baidu.NormalOffline.Map', { OfflineUrl: mapofflineurl_image diff --git a/src/views/systemSetting/device/grid/components/components/leafletMap.vue b/src/views/systemSetting/device/grid/components/components/leafletMap.vue index d4ed3f2..f383ad6 100644 --- a/src/views/systemSetting/device/grid/components/components/leafletMap.vue +++ b/src/views/systemSetting/device/grid/components/components/leafletMap.vue @@ -12,7 +12,7 @@ map_point: { x: "119.27179890", y: "28.59027084" }, map_zoom: 15, mapUrl: - "http://117.139.13.157:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}", + "http://172.28.194.179:41005/tilermap/rest/services/mapserver/baidu-image-db/{z}/{x}/{y}", // mapUrls: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', // mapUrls: "http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}", option: { diff --git a/vue.config.js b/vue.config.js index d97f668..f3a4d14 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,8 +39,8 @@ proxy: { // 璺ㄥ煙閰嶇疆 "/sccg": { - target: `http://42.193.1.25/`, - // target: `http://127.0.0.1:8082/`, + // target: `http://42.193.1.25/`, + target: `http://127.0.0.1:8082/`, changeOrigin: true } }, -- Gitblit v1.8.0