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

@@ -11,7 +11,7 @@
<!-- <link rel="icon" href="<%= BASE_URL %>favicon.ico" /> -->
<link rel="icon" href="#" />
<title><%= webpackConfig.name %></title>
<script src="http://api.tianditu.gov.cn/api?v=4.0&tk=d1eaedfce9e50588c78a91bbbdc5d5bc" type="text/javascript"></script>
<script src="https://api.tianditu.gov.cn/api?v=4.0&tk=d1eaedfce9e50588c78a91bbbdc5d5bc" type="text/javascript"></script>
<!--[if lt IE 11
]><script>
window.location.href = "/html/ie.html";

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) => {