From ee1f21e0c75245240ba594e8b47020598b2b0cfe Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 26 Oct 2022 18:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=BA=86=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 6 +++--- src/utils/dai-map.js | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index e19fe5bd3..d8a62f67a 100644 --- a/public/index.html +++ b/public/index.html @@ -7,11 +7,11 @@ - - + - + diff --git a/src/utils/dai-map.js b/src/utils/dai-map.js index a14a8af5b..e6cf3a220 100644 --- a/src/utils/dai-map.js +++ b/src/utils/dai-map.js @@ -87,7 +87,8 @@ export function searchNearby(map, keyword) { } else if (mapType == "tdzw") { return new Promise(async (reslove) => { const center = map.getCenter(); - const url = "https://service.sdmap.gov.cn/search"; + // const url = "https://service.sdmap.gov.cn/search"; + const url = "http://59.206.203.34/QueryService.ashx"; const { status, result } = await requestGet(url, { area: `CIRCLE(${center.lon} ${center.lat} 1000000)`, words: keyword, @@ -344,7 +345,8 @@ export default function init(ele, position, params) { this.getAddress = async function (lat, lng) { return new Promise(async (reslove) => { - const url = "https://service.sdmap.gov.cn/geodecode"; + // const url = "https://service.sdmap.gov.cn/geodecode"; + const url = "http://59.206.203.34/GeoDecodeService.ashx"; const { status, result } = await requestGet(url, { point: lng + "," + lat, type: "11",