增加地图标记点编辑

This commit is contained in:
aixianling
2023-04-12 17:12:04 +08:00
parent 1c64d0b827
commit a3a847aff6
3 changed files with 70 additions and 15 deletions

View File

@@ -47,6 +47,7 @@ export default {
},
methods: {
onCancel() {
this.$emit('input', false)
this.$emit('update:visible', false)
this.$emit('onCancel')
this.$emit('cancel')

View File

@@ -133,7 +133,7 @@ export default {
},
addPulseLines(city) {
let {amap: map, mapLib: lib, pulseLines} = this
if (pulseLines && lib && map) {
if (pulseLines && lib && map && city) {
this.loca = new Loca.Container({map: this.amap})
let ls = new lib.LineSearch({pageSize: 1, pageNum: 1, city}), lines = {
type: "FeatureCollection",