[openstreetmap-website] W3C Geolocation added to user account settings page (4rd attempt) (#27)

Martijn van Exel reply+i-3439245-3c7aaadcdb748e2e7494e2c1c098c92121388378-1419053 at reply.github.com
Wed Feb 29 16:21:34 GMT 2012


I added W3C Geolocation functionality to the user location map on the account settings page. This attempts to find a coarse location if the user has no home location set, so as to make setting the home location easier. If the location is already set, the map can be manually centered on the approx location by clicking a link on top of the map. When W3C geolocation fails (or is denied by the user), the page falls back to the old behaviour of showing a world map.


You can merge this Pull Request by running:

  git pull https://github.com/mvexel/openstreetmap-website geolocation

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/27

-- Commit Summary --

* added W3C geolocation to user account settings page.

-- File Changes --

A app/assets/javascripts/geolocate.js (25)
M app/views/user/_map.html.erb (7)
M app/views/user/account.html.erb (6)

-- Patch Links --

  https://github.com/openstreetmap/openstreetmap-website/pull/27.patch
  https://github.com/openstreetmap/openstreetmap-website/pull/27.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/27



More information about the rails-dev mailing list