Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

docs: address maintainer review for PR #1047

Rudy Celeklibbbdd0aeba19
diff --git a/docs/CURRENT-STATE.md b/docs/CURRENT-STATE.md
index 558963496..ef3720370 100644
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@ -5200,6 +5200,8 @@ the project's MIT license; see `DATA_SOURCES.md`.
## Map source factories and coordination
+A subscriber removed, or a controller destroyed, during a settled-state delivery receives no further callbacks from that delivery.
+
Map selection is composed from separate imagery, terrain and 3D factories.
The default registry retains Google 3D, Bing Aerial/Labels, Esri Satellite and
OSM, including their setup guidance and existing preset/share IDs. Esri still
@@ -5326,8 +5328,3 @@ datacenters, dams and the Nepal locator retain that shared credit while displaye
Military fragments stitch by source identity. Different mapped parcels merge only
when their footprints touch or contain one another, never across a seam tolerance gap.
-
-
-### fix(maps): stop delivering settled state to detached subscribers
-
-Recheck listener ownership and controller lifetime before each settled-state callback. Still-active subscribers keep their ordering and exception isolation.
diff --git a/src/maps/controller.js b/src/maps/controller.js
index d51b67082..6dd2720f7 100644
--- a/src/maps/controller.js
+++ b/src/maps/controller.js
@@ -142,7 +142,7 @@ export class MapSourceController {
if (this._destroyed || !this._subscribers.size) return;
const state = this.getState();
for (const listener of [...this._subscribers]) {
- if (this._destroyed || !this._subscribers.has(listener)) continue;
+ if (!this._subscribers.has(listener)) continue;
try {
listener(state);
} catch (error) {