mapbox-gl-accessibility
mapbox-gl-accessibility copied to clipboard
An accessibility control for Mapbox GL JS
https://github.com/mapbox/mapbox-gl-accessibility#demo: > 1. Go to https://labs.mapbox.com/mapbox-gl-accessibility Prompts "Requires an accessToken in localStorage. Add with localStorage.setItem('accessToken', {YOUR TOKEN})", is this expected?
enabling GitHub Advanced Security (GHAS) code scanning (CodeQL), see https://github.com/mapbox/gl-internal/issues/1608 with @ryanhamley
### Description of changes I needed a way to add some predictability when tabbing through features on a complex map, are you interested in supporting this functionality? It works by...
The accessible elements currently have a fixed width and height given in the plugin options. It would be nice to set from an expression evaluated per feature. For example if...
It looks like multiple accessible markers are being added when features span more than one tile  From the docs on [`queryrenderedfeatures`](https://docs.mapbox.com/mapbox-gl-js/api/map/#map#queryrenderedfeatures): > Because features come from tiled vector data...
To avoid [annoyances like this](https://github.com/mapbox/mapbox-gl-accessibility/pull/35#discussion_r491709277) I wonder if this plugin should add an event listener that is fired when elements have been added to the page ```js this.map.fire('accessibility.load'); ```
When [Mapbox GL Language](https://github.com/mapbox/mapbox-gl-language/) is present, default to the `name_*` property that corresponds to the user’s current locale. We could keep the `accessibleLabelProperty` property around for data visualization use cases...
Map mouse events and their callbacks drive a large amount of 3rd party behavior in MapboxGL maps. I think the DOM nodes generated by mapbox-gl-accessibility should also inherit event callback...
We should review the [Web Content Accessibility Guidelines (WCAG)](https://www.w3.org/WAI/standards-guidelines/wcag/) and ensure this plugin does as much as it can to ensure compliance.
Some hidden element should summarize the state of the map. The iOS implementation in mapbox/mapbox-gl-native#9950 summarizes the following information whenever the user zooms in or out: * The zoom level...