Bug with FrontWheel pos
This commit is contained in:
parent
474e8bf113
commit
e122bbbb08
@ -113,8 +113,10 @@ L.ParkingSpot = L.Circle.extend({
|
||||
if (parkingSize>=0) {
|
||||
var frontWheelEnd = turf.destination([start.lng, start.lat], validN2M[parkingSize] / 1000, this.options.attributes.heading, options);
|
||||
|
||||
if(this.frontWheel!==undefined) {
|
||||
this.frontWheel.setLatLng(this.turfToLatLng(frontWheelEnd));
|
||||
}
|
||||
}
|
||||
},
|
||||
select() {
|
||||
store.default.dispatch('setParking', this.options.attributes);
|
||||
|
Loading…
Reference in New Issue
Block a user