Host-owned initialized map.
Authoritative editor store.
Providers, projections, snapping and optional initial framing.
Binding controls and an idempotent detach method.
Package-owned layers exposed for display integration; do not persist them or dispose them independently.
Geographic user-drawing display layer.
Target control-point display layer.
Transformed raster preview layer.
Abort the active sketch and any pending GCP pair, returning to navigation.
Idempotently remove only package-owned layers, sources, interactions, listeners and reference jobs. Does not dispose the host map or controller.
Complete the active OpenLayers drawing sketch if one exists.
Fit the host view to the current preview bounds with padding; no-op if no preview exists.
Navigate map view history: -1 for back, 1 for forward. History resets when the host replaces the view.
Attach package-owned overlay, GCP, residual and draft layers/interactions to an existing OpenLayers map.
Call only in a browser after map creation. Borrowed layers are read without taking ownership. Detach removes owned resources and aborts reference requests while preserving the host map, layers and view. Do not combine this with the ready-made Georeferencer on the same controller/map: that component attaches its own binding.
Invalid projection definitions or datum grids throw before any resource is attached. Later failures, such as an unknown map projection or a control point that cannot be projected, are reported through the controller error state instead of throwing.