hotosm / oam-browser

OAM Imagery browser
https://map.openaerialmap.org
BSD 3-Clause "New" or "Revised" License
42 stars 27 forks source link

Url improvements #165

Open danielfdsilva opened 8 years ago

danielfdsilva commented 8 years ago

This is the current oam-browser url: http://beta.openaerialmap.org/#/85.25115966796875,27.53019381318793,8/1231312230/55bf966a2b67227a79b4f43c?_k=pqei4w

It is using hash history for navigation which is not the best approach for SEO and it has to include a state key: _k=pqei4w

A solution for this would be to use the html5 pushstate history. There would probably be some required changes to the links inside the browser and the site couldn't be hosted on github, since there needs to be some server rewrites. A simple instance with nginx is enough though.

This issue has some info on possible configuration files: https://github.com/reactjs/react-router/issues/199

The url would then look like: http://beta.openaerialmap.org/85.25115966796875,27.53019381318793,8/1231312230/55bf966a2b67227a79b4f43c

mojodna commented 7 years ago

I'd also like to see an easier way to link directly to an entry (a "scene"?, a "dataset"?) when I only know the id, e.g. 57fa169684ae75bb00ec74fe.

smit1678 commented 7 years ago

To also throw in another idea, it could be interesting to have country based views. Bookmarkable and easy to share URLs for map views that are centered on a country, i.e. openaerialmap.org/map/nepal/ or openaerialmap.org/map/fiji.

@mojodna @danielfdsilva or anyone else, can we outline a short backlog for how we want to approach all of this?