|
|
@@ -45,11 +45,10 @@
|
|
45
|
45
|
},
|
|
46
|
46
|
gotoPlace () {
|
|
47
|
47
|
if (this.currentPlace) {
|
|
48
|
|
- const marker = {
|
|
|
48
|
+ this.center = {
|
|
49
|
49
|
lat: this.currentPlace.geometry.location.lat(),
|
|
50
|
50
|
lng: this.currentPlace.geometry.location.lng()
|
|
51
|
51
|
}
|
|
52
|
|
- this.center = marker
|
|
53
|
52
|
}
|
|
54
|
53
|
},
|
|
55
|
54
|
addMarker (clicked) {
|
|
|
@@ -63,7 +62,6 @@
|
|
63
|
62
|
this.markers[1] = { position: marker }
|
|
64
|
63
|
this.getRoute(this.markers[0], this.markers[1])
|
|
65
|
64
|
}
|
|
66
|
|
- console.log(this.markers[0].position)
|
|
67
|
65
|
},
|
|
68
|
66
|
removeMarker (marker) {
|
|
69
|
67
|
this.markers = this.markers.filter(e => (marker.latLng.lat() !== e.position.lat) && (marker.latLng.lng() !== e.position.lng))
|