mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 后管更新天地图组件
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user