|
@@ -65,9 +65,9 @@ name: "wyMap",
|
|
|
|
|
|
},
|
|
|
clickMap(e) {
|
|
|
- console.log('点击的经纬度:' + e.Bg.lng + ', ' + e.Bg.lat)
|
|
|
- this.myCenter.lng = e.Bg.lng
|
|
|
- this.myCenter.lat = e.Bg.lat
|
|
|
+ console.log('点击的经纬度:' + e.point.lng + ', ' + e.point.lat)
|
|
|
+ this.myCenter.lng = e.point.lng
|
|
|
+ this.myCenter.lat = e.point.lat
|
|
|
this.isShow = true
|
|
|
let _this = this
|
|
|
this.$confirm('确定要选择这个地方吗', this.$t('action.waring'), {
|
|
@@ -75,7 +75,7 @@ name: "wyMap",
|
|
|
cancelButtonText: this.$t('action.cancel'),
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- const lngLat = e.Bg.lng + ',' + e.Bg.lat
|
|
|
+ const lngLat = e.point.lng + ',' + e.point.lat
|
|
|
_this.$emit('childFn', lngLat);
|
|
|
})
|
|
|
},
|
|
@@ -88,4 +88,4 @@ name: "wyMap",
|
|
|
width: 100%;
|
|
|
height: 600px;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|