Skip to content

[FEATURE] Expose onMouseMove events and setFeatureState for vector tiles for hover effects #685

@johnswarbrick

Description

@johnswarbrick

Feature Description

Please consider exposing onMouseMove events and setFeatureState for polygons within vector tiles.

This is to enable mouse over events for polygons such as the dynamic styling on Flutter web as described here:

https://maplibre.org/maplibre-gl-js/docs/examples/create-a-hover-effect/

Unfortunately, the onFeatureHover from PR #614 only works with annotation objects (Fill, Circle, Symbol, Line created via controller.addFill(), etc.), not with vector tile layers added via addLayer().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions