[openstreetmap-website] Routing (#716)

danstowell notifications at github.com
Sun Jun 29 19:45:07 UTC 2014


I'm reading back through @jfirebaugh 's suggestion. (The "jsrouting2" site doesn't seem to implement the suggestion any more. The branch has changed purpose? I can't even find the suggestion in the branch's history.)

If I understand right, he's suggesting that any left-mouse click on the map would trigger a nominatim search and then pop up a sidebar (as shown in the screenshot further up this PR). I'd suggest that it's undesirable to trigger nominatim on any mouse click, both for nominatim server load and for user interaction (repeatedly beachballing for a nominatim result would give an impression of much waiting).

That aside, I like the idea - I would like to see a map-click trigger a contextual menu for "Directions from here", "Directions to here", "Where is this" etc. But I second @systemed in saying that an up-front "Get directions" link is desirable, and so overall it seems to me that the left-click menu interaction is a separable idea that would suit a separate PR.

I've [implemented a simple sketch of click menu in my branch "jsrouting-contextmenu"](https://github.com/danstowell/openstreetmap-website/tree/jsrouting-contextmenu). I'm not sure how similar it might be to @jfirebaugh's idea. Comments welcome - it's only a sketch not a PR, and as I said I personally think this UI dimension can be treated as a separate PR.

![click_menu_screenshot_1](https://cloud.githubusercontent.com/assets/202965/3424240/7feb9fc2-ffc5-11e3-8f8f-241053a6847f.png)


---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/716#issuecomment-47471031
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140629/d2490b87/attachment.html>


More information about the rails-dev mailing list