Skip to content

Accessibility Issue: Cluster Markers do not allow title / alt to be set #1107

@deirdrehall

Description

@deirdrehall

In 2021, leaflet added role="button" to interactive markers (Leaflet/Leaflet#7428). Per accessibility standards, a div which has a role as a button (or link or menuitem) must have an associated title and/or alt text string.

Because the marker object is created internally to the marker cluster code and there is currently no way to pass marker options into the creation, interactive cluster markers created by this library do not pass accessibility checks:

image

The library needs a way to pass in a title string for a cluster marker which can then be passed to L.marker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions