[OSM-talk] map with FF 3.5 geolocation und hostip

Gervase Markham gerv-gmane at gerv.net
Tue Jul 7 10:15:05 BST 2009


On 06/07/09 10:51, Frankie Roberto wrote:
> The most obvious implementation we could do would be where users visit
> the slippy map without having a location set in their cookie. Currently
> we guess at a location via IP address, but it would be good (and not
> difficult) to use the geolocation API here instead, falling back on the
> existing IP-based method if the API isn't present or if the user
> declines to authorise permission.

The trouble with that is that in all supporting browsers, the first 
thing people will get when visiting OSM is some sort of prompt. Also, I 
can imagine visiting OSM, starting to find where I want on the map, then 
noticing "Oh, it wants to know where I am", clicking "Sure, no problem" 
and being taken _away_ from where I wanted to look.

I think a "Find Me" button is better UI.

> A final scenario is where the user is in motion, and wants the map to
> pan so that it 'follows' their movements.

"Find Me", when clicked, scrolls to the appropriate place and adds a 
marker. It then, under the covers, keeps asking for an updated location 
and moving the marker if necessary, but does not scroll the map unless 
"Find Me" is pressed again.

Gerv





More information about the talk mailing list