nrenner / brouter-web

Web client for BRouter, a routing engine based on OpenStreetMap
https://brouter.de/brouter-web/
MIT License
363 stars 69 forks source link

Provide "Open in OpenStreetMap" button regardless of current tiles layer #769

Open sjakobi opened 1 year ago

sjakobi commented 1 year ago

I'm used to use brouter-web with the tiles from OpenStreetMap.de. Unfortunately this deprives me of quick access to the the same map view on openstreetmap.org.

In this mode, I only get a button for "OpenStreetMap.de" which links to https://openstreetmap.de/karte/:

image

This link isn't very helpful though:

Therefore I'd like to request some way to access the same map section on openstreetmap.org, that works independently of the current tiles layer.

mjaschen commented 1 year ago

The following isn't the solution, but a suggestion for an ever better workflow:

What you see there is only the attribution information for the currently selected map.

There's a powerful browser extension called “OSM Smart Menu” which allows navigating between different map products with a single click and works, of course, from BRouter-Web instances. It's available for Firefox and Chromium-based Browsers.

Navigating between map products:

image

Directly jump to details for a given OSM element:

image

Jump to tools for inspecting a change set:

image
sjakobi commented 1 year ago

OMG, that extension is great! :star_struck:

Feel free to close this issue.

pbb72 commented 1 year ago

To save people from searching, documentation for OSM Smart Menu, with links to plugins, can be found at https://wiki.openstreetmap.org/wiki/OSM_Smart_Menu

Source code at https://github.com/jgpacker/osm-smart-menu

rkflx commented 1 year ago

I've had the exact same issue since ages, but only with CyclOSM. I solved it this way:

You could also redirect links from openstreetmap.de to osm.org originating from your chosen BRouter-Web instance with a browser plugin. It's one less click than the tip by @mjaschen, although admittedly much less powerful. I'd recommend Request Control, which is quite nifty: You can also remove tracking GET parameters from email links, Google searches, YouTube videos and others, use old.reddit.com, redirect to Invidious etc.


As for the request in the title, I'd be hesitant to add yet another button for niche use cases if we can avoid it. You should open an issue with individual maps if they don't respect the location parameters or fix our map .geojson files if it turns out we use the wrong ones. That's better than adding workarounds everywhere and it will fix it for everyone.

Regarding the click-to-query feature, I'd encourage you to open another issue for that here. I'd really love to have that, ideally without having to click (e.g. in QLandkarte which I'm still using for that reason it works continuously on mouse-over, sadly QMapShack switched it to wait-for-hover-timeout). A low-latency and non-hacky implementation seems quite difficult with Overpass, though. It might be more feasible to explore a vector tile approach (provide MVT tiles with the respective data, use for queries, supply "invisible" map style).

Feel free to close this issue.

Only the maintainer and you have that power, so feel free to press that button yourself.