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,7 +113,9 @@ 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);
this.frontWheel.setLatLng(this.turfToLatLng(frontWheelEnd)); if(this.frontWheel!==undefined) {
this.frontWheel.setLatLng(this.turfToLatLng(frontWheelEnd));
}
} }
}, },
select() { select() {