Better event for location.

This commit is contained in:
James Cole
2021-02-22 19:41:54 +01:00
parent e1826cdfb2
commit 9b65f468a0
2 changed files with 16 additions and 9 deletions

View File

@@ -112,7 +112,14 @@ export default {
this.emitEvent();
},
emitEvent() {
this.$emit('set-marker-location', {zoomLevel: this.zoom, lat: this.marker[0], lng: this.marker[1], hasMarker: this.hasMarker});
this.$emit('set-marker-location', {
index: this.index,
zoomLevel: this.zoom,
lat: this.marker[0],
lng: this.marker[1],
hasMarker: this.hasMarker
}
);
},
zoomUpdated(zoom) {
this.zoom = zoom;