From 6ed5da1a990c778899339fe0f8932589d0fff72a Mon Sep 17 00:00:00 2001 From: Keith Paterson Date: Sun, 17 Jan 2021 14:48:21 +0100 Subject: [PATCH] #122 --- src/renderer/components/ParkingEdit.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/ParkingEdit.vue b/src/renderer/components/ParkingEdit.vue index 1a5b41e..561cc76 100644 --- a/src/renderer/components/ParkingEdit.vue +++ b/src/renderer/components/ParkingEdit.vue @@ -254,7 +254,7 @@ const centerLatLng = convert(this.$store.state.Editable.data.parking.coords); const parkingSize = this.validRadii.indexOf(this.$store.state.Editable.data.parking.radius); if (parkingSize>=0) { - var newNoseWheel = turf.destination(this.latToTurf(centerLatLng), this.validN2M[parkingSize]/1000, this.$store.state.Editable.data.parking.heading - 180, turfOptions); + var newNoseWheel = turf.destination(this.latToTurf(centerLatLng), this.validN2M[parkingSize]/1000, this.$store.state.Editable.data.parking.heading, turfOptions); this.$store.commit('SET_EDIT_PARKING_NOSE_COORDS', this.turfToLatLng(newNoseWheel)); } } @@ -266,7 +266,7 @@ const noseWheelLatLng = convert(this.$store.state.Editable.data.parking.nosecoords); const parkingSize = this.validRadii.indexOf(this.$store.state.Editable.data.parking.radius); if (parkingSize>=0) { - var newCenter = turf.destination(this.latToTurf(noseWheelLatLng), this.validN2M[parkingSize]/1000, this.$store.state.Editable.data.parking.heading, turfOptions); + var newCenter = turf.destination(this.latToTurf(noseWheelLatLng), this.validN2M[parkingSize]/1000, this.$store.state.Editable.data.parking.heading - 180, turfOptions); this.$store.commit('SET_EDIT_PARKING_COORDS', this.turfToLatLng(newCenter)); } }