[OSM-dev] Addressable maps & updated URL?

David Earl david at frankieandshadow.com
Fri Sep 28 09:37:40 BST 2007


On 28/09/2007 09:34, Francisco R. Santos wrote:
> 
> 
> 2007/9/28, Tom Hughes <tom at compton.nu <mailto:tom at compton.nu>>:
> 
>     In message <46FC9B1D.1070406 at skynet.be
>     <mailto:46FC9B1D.1070406 at skynet.be>>
>             Christophe Cattelain <xof at skynet.be <mailto:xof at skynet.be>>
>     wrote:
> 
>      > However, it is easy to implement, one just has to change '
>     location.href'
>      > on a 'moveend' event...
>      > Something like
>      >
>      >
>     location.href="http://www.openstreetmap.org/#lat=50.72&lon=5.65&zoom=12&layers=B0F
>     <http://www.openstreetmap.org/#lat=50.72&lon=5.65&zoom=12&layers=B0F>";
>      >
>      > Notice the '#' in place of the '?' in the URL; otherwise, the page is
>      > (automaticaly) reloaded!
> 
>     I was aware that this was a theoretical possibility, but I had never
>     seen a site that did it and I wasn't sure how well browsers would cope
>     with constant updating of the URL bar like that or whether people
>     would like it. I'm certainly not sure if I would like it.

It does mean the back button works as per static web pages too, that is 
as most users not 'in the know' expect.

David





More information about the dev mailing list