You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "don't add the catalog overlay before the style finishes loading" guard added
an `if (!map.isStyleLoaded()) return` at the TOP of addCatalogOverlay — but that
method's tail also wires the one-time map interaction listeners (the ECDIS crosshair
cursor, the click → cursor-pick, coverage tap-to-fly). When the first onReady call
hit a mid-rebuild style the guard bailed, and if no later style.load re-fired the
whole block never ran: no crosshair, no pick, no coverage (focus source absent,
_catalogMapWired stayed false).
Fix: call addCatalogOverlay only on a LOADED style — directly when it already is,
else on style.load — and drop the internal isStyleLoaded-and-return. This still
avoids the "Style is not done loading" addSource throw, but never skips the wiring.
Verified on the live app: crosshair restored, _catalogMapWired/coverage/focus all
true, pick handler attached again.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments