diff --git a/CHANGELOG.md b/CHANGELOG.md index 3df120b..14e4228 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.3.43] - 2024.12.30 ### Added -- Projects on a map +- Project counts on a map ## [0.3.42] - 2024.12.27 - 9751934bc24a1040415a8cfeacbae59ed91f92a5 diff --git a/src/views/SearchAreaView.vue b/src/views/SearchAreaView.vue index ff1da94..0898916 100644 --- a/src/views/SearchAreaView.vue +++ b/src/views/SearchAreaView.vue @@ -166,8 +166,10 @@ export default class SearchAreaView extends Vue { // This doesn't seem like the right approach but it's the only way I can find to get the screen bounds. const bounds = event.target.boxZoom?._map?.getBounds(); if (bounds) { - latDiff = Math.abs(bounds.getNorthEast().lat - bounds.getSouthWest().lat) / 8; - longDiff = Math.abs(bounds.getNorthEast().lng - bounds.getSouthWest().lng) / 8; + latDiff = + Math.abs(bounds.getNorthEast().lat - bounds.getSouthWest().lat) / 8; + longDiff = + Math.abs(bounds.getNorthEast().lng - bounds.getSouthWest().lng) / 8; } this.localLatDiff = latDiff; this.localLongDiff = longDiff;