mapbox / mapbox-gl-accessibility

An accessibility control for Mapbox GL JS
https://labs.mapbox.com/mapbox-gl-accessibility
ISC License
68 stars 21 forks source link

Order POIs by proximity to user location #3

Open 1ec5 opened 6 years ago

1ec5 commented 6 years ago

When the geolocate control is enabled and trackUserLocation is enabled, the accessible elements could be ordered to start at the user location marker and radiate outward. At least this is how our iOS implementation does it. Otherwise, we could order the elements from top-left to bottom-right; either way, consistency helps the user know how far they’ve gotten through the list of elements.

/cc @tristen

andrewharvey commented 6 years ago

Otherwise, we could order the elements from top-left to bottom-right; either way, consistency helps the user know how far they’ve gotten through the list of elements.

Agreed. I think top-left to bottom-right should be the default since only a small fraction of GL JS maps will have the geolocate control enabled, but also agreed that order by distance is very useful for some applications.