Communications Workbench Overview Map with Clustering #169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-164-overview-map"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the overview map for issue #164: every communication is now visible on the map at once.
Closes #164
b434bbe824459bcbd78e459bcbd78e11a8b9bbaaSources and layers were re-applied on a one-shot 'load' plus a per-toggle once('styledata') handler. MapLibre fires styledata at unpredictable times relative to setStyle (sometimes before the listener registers, and addSource/addLayer throw 'Style is not done loading' mid-swap), so a replay could run at the wrong moment, throw, and abort the whole batch — leaving sources/layers missing until a later toggle happened to time correctly. - Register on the persistent style.load event (fires once the new style is fully loaded, the only moment adds are guaranteed safe); per-item try/catch so one failure cannot abort the batch - Registry now stores the latest config on every registerSource/registerLayer call, so replays recreate sources with current (post-load) data and layers with current paint, instead of mount-time empties - Layer event handlers attach once per map instance (they survive style switches), no duplicate re-attachment - Remove the racy once('styledata') re-registration and the Source.vue setTimeout(0) style.load helper6f6f5af99e81bf9bfe2dPull request closed