new EventBindingService()
MapboxViewer/application/services/EventBindingService.ts, line 17
Methods
-
bindFeatureEvents(dataLayer, sourceId, mapboxRenderer)
MapboxViewer/application/services/EventBindingService.ts, line 97 -
Binds feature events from OpenLayers to synchronize with Mapbox GeoJSON source. Automatically syncs when features are added, removed, or loaded.
Name Type Description dataLayerThe GO layer.
sourceIdThe Mapbox source ID.
mapboxRendererThe Mapbox renderer.
-
bindMapboxMovement(gisMap, mapboxRenderer)
MapboxViewer/application/services/EventBindingService.ts, line 39 -
Binds Mapbox map movement to OpenLayers to force feature loading when Mapbox is active. This ensures features are loaded in OpenLayers even when it's not visible.
Name Type Description gisMapThe staging map.
mapboxRendererThe Mapbox renderer.
-
bindOLVisibility(mapId, gisMap, renderers, layers)
MapboxViewer/application/services/EventBindingService.ts, line 178 -
Binds OpenLayers layer visibility changes to Mapbox layer visibility.
Name Type Description mapIdThe map ID.
gisMapThe staging map.
renderersThe renderers for the map.
layersThe layer registry.
-
bindVisibility(gisMap, mapboxRenderer)
MapboxViewer/application/services/EventBindingService.ts, line 156 -
Binds visibility changes from OpenLayers layers to Mapbox layers.
Name Type Description gisMapThe staging map.
mapboxRendererThe Mapbox renderer.
-
dispose()
MapboxViewer/application/services/EventBindingService.ts, line 197 -
Disposes of all event listeners.
