Browse Source

fix linting

split_build_process
Trent Larson 3 weeks ago
parent
commit
f524714fbf
  1. 2
      CHANGELOG.md
  2. 6
      src/views/SearchAreaView.vue

2
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

6
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;

Loading…
Cancel
Save