map: cluster camera markers so cameras stay visible when zoomed in
All checks were successful
build-and-deploy / build (push) Successful in 4m33s
All checks were successful
build-and-deploy / build (push) Successful in 4m33s
Zooming in replaced the marker group with a bbox subset, so dense world views (5k dots) thinned to a handful of pins — or zero on a wrapped world copy, where currentBBox collapsed to a sliver and the API returned ~nothing. Cameras only seemed to exist when zoomed out. - vendor leaflet.markercluster 1.5.3; camera markers now render as numbered neon-green clusters at low zoom and split into individual dots as you zoom, so camera coverage is visible at every zoom level (spiderfy at max zoom) - guard against null lat/lon rows (no phantom markers at 0,0) - stale-response guard for loadCams/loadFires: rapid wheel zoom can resolve fetches out of order and a stale bbox response blanked the map - serve index.html with Cache-Control: no-cache so the browser never keeps serving a pre-deploy copy after fixes land
This commit is contained in:
parent
6f0fc8dbe3
commit
5cea0a5940
5 changed files with 121 additions and 5 deletions
2
app/static/vendor/leaflet/leaflet.markercluster.js
vendored
Normal file
2
app/static/vendor/leaflet/leaflet.markercluster.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue