Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Order POIs by proximity to user location #3

Open
1ec5 opened this issue Nov 17, 2017 · 1 comment
Open

Order POIs by proximity to user location #3

1ec5 opened this issue Nov 17, 2017 · 1 comment
Labels
enhancement iOS SDK parity Needed for feature parity with the Mapbox Maps SDK for iOS

Comments

@1ec5
Copy link

1ec5 commented Nov 17, 2017

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

@1ec5 1ec5 added enhancement iOS SDK parity Needed for feature parity with the Mapbox Maps SDK for iOS labels Nov 17, 2017
@andrewharvey
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement iOS SDK parity Needed for feature parity with the Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

2 participants