Skip to content

Marker forces pointer-events: auto in all scenarios #13701

Description

@maritaria

mapbox-gl-js version

v3.24.0

Browser and version

FireFox 152.0.5

Expected behavior

When setting myMarker.style.pointerEvents = 'none'; on a Marker's element it should be respected, or otherwise an API to modify its value needs to be avaiable.

Actual behavior

pointerEvents is set to auto by mapbox-gl in Marker._evaluateOpacity

Setting myMarker.element.style.pointerEvents = 'none' does not produce this setting on the real element.

Link to the demonstration

No response

Steps to trigger the unexpected behavior

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions