Waymarked trails

From OpenStreetMap Wiki
Jump to navigation Jump to search

Bookmarklets

Use this bookmarklet to conveniently access a relation with Waymarked Trails from openstreetmap.org! By clicking on the new bookmark (or opening it via a keyword) while visiting a relation page such as 10534456, you will get a new tab/window with the waymarked trail for that relation.

javascript:(function(){id=location.href.match(/www\.openstreetmap\.org\/relation\/(\d+)/);if(id!=null){window.open('https://hiking.waymarkedtrails.org/#route?id='+id[1]);}else{alert('This is not a valid OSM relation page.')}})()

(Credits to pangoSE, Eugene and The knife)

Use this bookmarklet to conveniently open a relation from Waymarked Trails in JOSM! This does not download members.

javascript:(function(){id=location.href.match(/waymarkedtrails\.org\/\#route\?id=(\d+)/);if(id!=null){window.open('http://127.0.0.1:8111/load_object?objects=r'+id[1]);}else{alert('This is not a valid Waymarked Trails relation page.')}})()

(Credits to pangoSE, Eugene and The knife)

Use this bookmarklet to conveniently open a relation from Waymarked Trails in JOSM! This downloads members too.

javascript:(function(){id=location.href.match(/waymarkedtrails\.org\/\#route\?id=(\d+)/);if(id!=null){window.open('http://127.0.0.1:8111/load_object?relation_members=true&objects=r'+id[1]);}else{alert('This is not a valid Waymarked Trails relation page.')}})()

(Credits to pangoSE, Eugene and The knife)