You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Configurable external map links with coordinate URL templates
#1385
It would be nice to allow users to define custom external links in their user settings, with URL templates containing variables such as {lat}, {lon}, {zoom}, etc.
These links would appear in a context menu when right-clicking a position on the map, both in the route planner and the route viewer.
This would allow easy integration with external mapping services (Google maps/Street View, OpenStreetMap, etc.) or any arbitrary external service without introducing any provider-specific dependencies.
I would suggest an additional user setting in Settings → Map → External links where users could define any number of links, for example:
- name: OpenStreetMap
url: https://www.openstreetmap.org/?mlat={lat}&mlon={lon}#map={zoom}/{lat}/{lon}
- name: Google Street View
url: https://www.google.com/maps/@?api=1&map_action=pano&viewpoint={lat},{lon}
these template variables could be made available to the templated urls:
{lat} Latitude at clicked position
{lon} Longitude at clicked position
{zoom} Current map zoom
{elevation} Elevation at clicked point, if available
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
It would be nice to allow users to define custom external links in their user settings, with URL templates containing variables such as {lat}, {lon}, {zoom}, etc.
These links would appear in a context menu when right-clicking a position on the map, both in the route planner and the route viewer.
This would allow easy integration with external mapping services (Google maps/Street View, OpenStreetMap, etc.) or any arbitrary external service without introducing any provider-specific dependencies.
I would suggest an additional user setting in
Settings → Map → External linkswhere users could define any number of links, for example:these template variables could be made available to the templated urls:
All reactions