| src/components/leafletDraw.vue | ●●●●● patch | view | raw | blame | history |
src/components/leafletDraw.vue
@@ -95,6 +95,13 @@ }, initDate () { var str = window.location.search.substring(1) var obj = this.getUrlParams(str) console.log(obj) if(obj.latitude&&obj.longitude){ this.lat = obj.latitude this.lng = obj.longitude } this.map = this.$L.map("map", { center: [this.lat, this.lng], // 地图中心 zoom: 14, //缩放比列 @@ -219,7 +226,7 @@ wx.miniProgram.navigateBack() }) .catch(function (error) {