Class: EventBindingService

EventBindingService

Service for binding events between OpenLayers and Mapbox renderers.

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
dataLayer

The GO layer.

sourceId

The Mapbox source ID.

mapboxRenderer

The 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
gisMap

The staging map.

mapboxRenderer

The 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
mapId

The map ID.

gisMap

The staging map.

renderers

The renderers for the map.

layers

The layer registry.

bindVisibility(gisMap, mapboxRenderer)

MapboxViewer/application/services/EventBindingService.ts, line 156

Binds visibility changes from OpenLayers layers to Mapbox layers.

Name Type Description
gisMap

The staging map.

mapboxRenderer

The Mapbox renderer.

dispose()

MapboxViewer/application/services/EventBindingService.ts, line 197

Disposes of all event listeners.