update 后管更新天地图组件

This commit is contained in:
Lemon
2024-08-15 13:29:53 +08:00
parent 415f7c4b36
commit b5eb295c11
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ export default {
// console.log("搜索值", this.searchPlaceInput);
// // 向表单 site-info传值
// bus.$emit("inp", this.searchPlaceInput);
const url = `http://api.tianditu.gov.cn/geocoder?ds={"keyWord":"${this.inputObject.userInput}"}&tk=da94c475e0b4960e6f863d7f2947435c`;
const url = `https://api.tianditu.gov.cn/geocoder?ds={"keyWord":"${this.inputObject.userInput}"}&tk=da94c475e0b4960e6f863d7f2947435c`;
axios
.get(url)
.then((res) => {
@@ -241,7 +241,7 @@ export default {
var marker = new T.Marker(new T.LngLat(lng, lat));
this.map.addOverLay(marker);
const url = `http://api.tianditu.gov.cn/geocoder?postStr={lon:${lng},lat:${lat},ver:1}&type=geocode&tk=da94c475e0b4960e6f863d7f2947435c`;
const url = `https://api.tianditu.gov.cn/geocoder?postStr={lon:${lng},lat:${lat},ver:1}&type=geocode&tk=da94c475e0b4960e6f863d7f2947435c`;
axios
.get(url)
.then((res) => {