Runs and discards every tracked cleanup for map, detaching all delegated
listeners recorded via trackMapCleanup. Safe to call repeatedly and
when nothing is tracked.
Individual teardown errors are swallowed: after setStyle() the target layer
may already be gone, in which case map.off() is a harmless no-op but could
throw on an engine edge case — one failing teardown must not abort the rest.
Runs and discards every tracked cleanup for
map, detaching all delegated listeners recorded via trackMapCleanup. Safe to call repeatedly and when nothing is tracked.Individual teardown errors are swallowed: after
setStyle()the target layer may already be gone, in which casemap.off()is a harmless no-op but could throw on an engine edge case — one failing teardown must not abort the rest.