Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the HTML5 geolocation API to center the map. #18

Open
bobthecow opened this issue Feb 1, 2013 · 2 comments
Open

Use the HTML5 geolocation API to center the map. #18

bobthecow opened this issue Feb 1, 2013 · 2 comments
Labels

Comments

@bobthecow
Copy link
Contributor

... has been implemented :)

This might seem a bit intrusive upon first entering the site, but it's definitely super useful.

As part of the #16 design, it looks like there's a "locate me" button. Do we want to not auto-center the map, but wait for them to click? We definitely want to toggle the presence of the "locate me" button based on availability of the geolocation APIs.

Thoughts @ScottBlew @thisandagain?

@bobthecow
Copy link
Contributor Author

If there's an available jsonp IP address geocoder service, it might make sense to ping something like that first, to get an approximate center, then request access to the geolocation API when they click "locate me"

@ScottBlew
Copy link
Contributor

@bobthecow i think location prompt ok. It's better than zooming out and panning to your city. I also agree with toggling the "locate me" button visibility. If the user opts in the arrow will highlight blue conversely if they opt out it will remain grey. They can click on it any time to prompt geolocation.

thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants