# add marker
This commit is contained in:
parent
b50ef0fb6d
commit
755e24b9a0
|
@ -90,6 +90,12 @@ export default {
|
||||||
this.coordinate = [113.203460828994, 22.64902452257]
|
this.coordinate = [113.203460828994, 22.64902452257]
|
||||||
}
|
}
|
||||||
// console.log(this.coordinate)
|
// console.log(this.coordinate)
|
||||||
|
const marker = []
|
||||||
|
marker.position = this.coordinate
|
||||||
|
marker.visible = true
|
||||||
|
marker.dragend = false
|
||||||
|
marker.events = defaultEvents
|
||||||
|
this.markers.push(marker)
|
||||||
this.center = this.coordinate
|
this.center = this.coordinate
|
||||||
this.flag = true
|
this.flag = true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue