diff --git a/src/components/DistanceLabel.vue b/src/components/DistanceLabel.vue index 2312354..c7d4d34 100644 --- a/src/components/DistanceLabel.vue +++ b/src/components/DistanceLabel.vue @@ -7,18 +7,19 @@ export default { name: 'DistanceLabel', props: { distance: Number, - highPrecision: Boolean + highPrecision: Boolean, + smallUnits: Boolean }, computed: { displayDistance () { if (this.$store.state.altitudeUnits === 'ft') { - if (this.highPrecision && this.distance < (1000 / 3.28084)) { + if (this.smallUnits || (this.highPrecision && this.distance < (1000 / 3.28084))) { return Math.round(this.distance * 3.28084) + ' ft' } else { return (this.distance * 0.000621371).toFixed(1) + ' mi' } } else { - if (this.highPrecision && this.distance < 1000) { + if (this.smallUnits || (this.highPrecision && this.distance < 1000)) { return Math.round(this.distance) + ' m' } else { return (this.distance / 1000).toFixed(1) + ' km' diff --git a/src/components/MapDraw.vue b/src/components/MapDraw.vue index 2bb7fb4..6c71255 100644 --- a/src/components/MapDraw.vue +++ b/src/components/MapDraw.vue @@ -2,6 +2,7 @@