From bcf8b7411f17e90935edf8175958211e06e8f57d Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 13 Sep 2022 09:22:23 +0800
Subject: [PATCH] 修改地图地址为https
---
src/components/小胖胖leafletDraw copy 3.vue | 6 +++---
src/components/leafletDraw.vue | 4 ++--
src/components/draw.vue | 2 +-
src/components/clickMap.vue | 4 ++--
src/components/revampDraw.vue | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/components/clickMap.vue b/src/components/clickMap.vue
index ca8b155..9bfb9d4 100644
--- a/src/components/clickMap.vue
+++ b/src/components/clickMap.vue
@@ -213,11 +213,11 @@
doubleClickZoom: false, // 禁用双击放大
attributionControl: false // 移除右下角leaflet标识
})
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(this.map)
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(this.map)
},
diff --git a/src/components/draw.vue b/src/components/draw.vue
index a946052..4b650d9 100644
--- a/src/components/draw.vue
+++ b/src/components/draw.vue
@@ -196,7 +196,7 @@
flightArr: [31.34534554915163, 120.40351663678561],
url: "https://mt3.google.cn/maps/vt?lyrs=s,h@189&gl=cn&x={x}&y={y}&z={z}&scale=1.2",
attribution:
- '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
+ '© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',
latlngArr: [], //绘制的地块的坐标
area: 0, //多边形面积
perimeter: 0, //周长
diff --git a/src/components/leafletDraw.vue b/src/components/leafletDraw.vue
index f05694b..ae6a0a1 100644
--- a/src/components/leafletDraw.vue
+++ b/src/components/leafletDraw.vue
@@ -109,11 +109,11 @@
doubleClickZoom: false, // 禁用双击放大
attributionControl: false, // 移除右下角leaflet标识
})
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(this.map)
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(this.map)
diff --git a/src/components/revampDraw.vue b/src/components/revampDraw.vue
index 84f32a2..e094cc3 100644
--- a/src/components/revampDraw.vue
+++ b/src/components/revampDraw.vue
@@ -223,11 +223,11 @@
doubleClickZoom: false, // 禁用双击放大
attributionControl: false // 移除右下角leaflet标识
})
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(this.map)
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(this.map)
// this.map.removeLayer(name) // 移除图层
diff --git "a/src/components/\345\260\217\350\203\226\350\203\226leafletDraw copy 3.vue" "b/src/components/\345\260\217\350\203\226\350\203\226leafletDraw copy 3.vue"
index 4dfd1d5..9f795fe 100644
--- "a/src/components/\345\260\217\350\203\226\350\203\226leafletDraw copy 3.vue"
+++ "b/src/components/\345\260\217\350\203\226\350\203\226leafletDraw copy 3.vue"
@@ -186,7 +186,7 @@
flightArr: [31.34534554915163, 120.40351663678561],
url: "https://mt3.google.cn/maps/vt?lyrs=s,h@189&gl=cn&x={x}&y={y}&z={z}&scale=1.2",
attribution:
- '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
+ '© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',
latlngArr: [], //绘制的地块的坐标
area: 0, //多边形面积
perimeter: 0, //周长
@@ -299,7 +299,7 @@
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(myMap)
@@ -307,7 +307,7 @@
// subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
// }).addTo(myMap)
- this.$L.tileLayer('http://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
+ this.$L.tileLayer('https://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=e9533f5acb2ac470b07f406a4d24b4f0', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
}).addTo(myMap)
--
Gitblit v1.9.3