visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.88k stars 1.35k forks source link

[Feat] Ability to update aria-label on mapboxgl canvas #2209

Open khudiono opened 1 year ago

khudiono commented 1 year ago

Target Use Case

I need the ability to update the aria-label of the mapboxgl canvas to provide more meaningful and descriptive textual equivalent for users using a screen reader. Currently the canvas (with class "mapboxgl-canvas" and the canvas that gains focus because it's tabIndex is set to 0) is rendered with the aria-label="Map".

Proposal

Ability to update the aria label of the mapboxgl canvas.

Pessimistress commented 1 year ago

The canvas is not created by this library. Maybe make a feature request to mapbox-gl?