# add marker

This commit is contained in:
xianfuxing 2018-08-28 11:34:23 +08:00
parent b50ef0fb6d
commit 755e24b9a0
1 changed files with 6 additions and 0 deletions

View File

@ -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
}) })