Keep the annotation board across engine switches and draw it again on Cesium

The marks belong to the page session; only their drawing belongs to the attached viewer. A switch takes the drawing off, keeps the marks, and the next Cesium attachment draws them again. Without a viewer the board refuses new annotations instead of failing in the resolver.
This commit is contained in:
German Khokhlov committed 2026-11-03 17:24:39 +04:00
1 parent 05578c61b9
commit 111ba1626c
6 files changed
+239 -28

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ const session = createSessionDiagnostics(() => {
placeSearch: style?.placeSearch,
dataManager: components.data?.dataManager,
voice: layerSession.voice?.commands ?? components.tools?.voiceCommands,
annotations: components.tools?.annotations,
annotations: layerSession.annotations ?? components.tools?.annotations,
geoImport: window.__gevGeoImport,
drawTool: window.__gevDrawTool,
};