missinglink/leaflet-spatial-prefix-tree

A way to link the map by the Geohash?

ppKrauss opened this issue · 2 comments

Hi, there are a way to use something like
http://mapzen.github.io/leaflet-spatial-prefix-tree/{myGeohash}
?

There is not currently support for sharing links to geohashes.

I know http://geohash.org offers this functionality.

As it's hosted on GitHub pages any parameter would have to be part of the url anchor.

We'd be happy to accept a PR for this.

Oops sorry, it is Javascript. Ok, suppose a cool URI using #, that is,
http://mapzen.github.io/leaflet-spatial-prefix-tree#{myGeohash}.

Implementation: usewindow.location.hash. See location properties or onhashchange.

PS: the formal name of the "hash" in the URI scheme is fragment.