diff --git a/src/views/counter/map.vue b/src/views/counter/map.vue index 5a76518..933f0c4 100644 --- a/src/views/counter/map.vue +++ b/src/views/counter/map.vue @@ -90,6 +90,12 @@ export default { this.coordinate = [113.203460828994, 22.64902452257] } // 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.flag = true })