Bug with FrontWheel pos

This commit is contained in:
portree_kid 2020-06-19 21:03:46 +02:00
parent 474e8bf113
commit e122bbbb08

View File

@ -113,8 +113,10 @@ L.ParkingSpot = L.Circle.extend({
if (parkingSize>=0) { if (parkingSize>=0) {
var frontWheelEnd = turf.destination([start.lng, start.lat], validN2M[parkingSize] / 1000, this.options.attributes.heading, options); 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)); this.frontWheel.setLatLng(this.turfToLatLng(frontWheelEnd));
} }
}
}, },
select() { select() {
store.default.dispatch('setParking', this.options.attributes); store.default.dispatch('setParking', this.options.attributes);