mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
fix: map shows all events always, only table filters
Map polygons are drawn once on load and never cleared/redrawn. HTMX swap only updates the table, not the map layers. User viewport is fully preserved.
This commit is contained in:
parent
b661fd2519
commit
420dc2a614
1 changed files with 2 additions and 2 deletions
|
|
@ -417,7 +417,7 @@
|
|||
document.getElementById("fit-to-results").addEventListener("click", fitToAllLayers);
|
||||
|
||||
// Initial load - bind layers and fit bounds
|
||||
rebindEventLayers();
|
||||
// rebindEventLayers(); // DISABLED: map shows all events, only table filters
|
||||
if (false) { // DISABLED: map never auto-fits
|
||||
fitToAllLayers();
|
||||
isInitialLoad = false;
|
||||
|
|
@ -426,7 +426,7 @@
|
|||
// Re-bind layers after HTMX swap (but do NOT fit bounds)
|
||||
document.body.addEventListener("htmx:afterSwap", function(evt) {
|
||||
if (evt.detail.target.id === "events-rows") {
|
||||
rebindEventLayers();
|
||||
// rebindEventLayers(); // DISABLED: map shows all events, only table filters
|
||||
// Do NOT call fitToAllLayers - preserve user viewport
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue