Class: MapOrchestrator

MapOrchestrator

Orchestrates the rendering of maps using both OpenLayers and Mapbox renderers. Manages layer conversion, feature synchronization, and renderer switching.

new MapOrchestrator(_viewer, _activeRendererType)

MapboxViewer/application/services/MapOrchestrator.ts, line 32
Name Type Description
_viewer

The MapboxViewer instance managing the maps.

_activeRendererType

The initially active renderer type.

Members

activeRendererType

Gets the currently active renderer type.

Methods

dispose()

MapboxViewer/application/services/MapOrchestrator.ts, line 69

Disposes of all registered disposers to clean up event listeners.

getCurrentRenderer(mapId)

MapboxViewer/application/services/MapOrchestrator.ts, line 109

Gets the current renderer for a specific map.

Name Type Default Description
mapId main

The map ID, defaults to "main".

Returns:
The current renderer instance.

asyncinit()

MapboxViewer/application/services/MapOrchestrator.ts, line 53

Initializes renderers for all staging maps and sets up layer conversions.

asynctoggleRenderer()

MapboxViewer/application/services/MapOrchestrator.ts, line 86

Toggles between OpenLayers and Mapbox renderers for all maps.