add requests for map tiles with counts of plans (commented out)

This commit is contained in:
2024-12-29 19:14:23 -07:00
parent caf46ab383
commit 6f67e7845b
4 changed files with 167 additions and 9 deletions

View File

@@ -68,7 +68,7 @@
</div>
</div>
<div class="mb-4 aspect-video">
<div class="aspect-video">
<l-map
ref="map"
:center="[localCenterLat, localCenterLong]"
@@ -129,7 +129,7 @@ const DEFAULT_ZOOM = 2;
LTileLayer,
},
})
export default class DiscoverView extends Vue {
export default class SearchAreaView extends Vue {
$notify!: (notification: NotificationIface, timeout?: number) => void;
isChoosingSearchBox = false;
@@ -166,8 +166,8 @@ export default class DiscoverView 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._northEast.lat - bounds._southWest.lat) / 8;
longDiff = Math.abs(bounds._northEast.lng - bounds._southWest.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;