From 755e24b9a0cb43de810d386a15bcb3d75b232679 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Tue, 28 Aug 2018 11:34:23 +0800 Subject: [PATCH] # add marker --- src/views/counter/map.vue | 6 ++++++ 1 file changed, 6 insertions(+) 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 })