Class: MapboxHighlightInteraction

MapboxHighlightInteraction

Interactions on a Mapbox map by highlighting specific features persistently based on filters.

new MapboxHighlightInteraction(map, options)

MapboxViewer/infrastructure/adapters/interactions/MapboxHighlightInteraction.ts, line 5

Creates a new MapboxHighlightInteraction instance.

Name Type Description
map

The Mapbox map instance.

options

Configuration options for the highlight interaction.

Methods

disable()

MapboxViewer/infrastructure/adapters/interactions/MapboxHighlightInteraction.ts, line 44

Disables the highlight interaction by removing highlights and cleaning up.

enable()

MapboxViewer/infrastructure/adapters/interactions/MapboxHighlightInteraction.ts, line 37

Enables the highlight interaction (prepara la capa si es necesario).

setOptions(options)

MapboxViewer/infrastructure/adapters/interactions/MapboxHighlightInteraction.ts, line 52

Updates the interaction options.

Name Type Description
options

New options to apply.