-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
mapbox-gl-js version:
Question
Which interaction types are supported in the new Interactions API? I just can find statements like:
To use the API, you define interaction handlers for events like 'click' or 'mouseenter'
But which types are realy supported?
map.addInteraction('my-polygon-click-interaction', {
type: 'click',
target: 'polygons',
handler: (e) => {
map.setFeatureState(e.feature, {highlight: true});
}
});
Links to related documentation
https://docs.mapbox.com/mapbox-gl-js/guides/user-interactions/interactions/
Metadata
Metadata
Assignees
Labels
No labels