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