Add Opentopomaps link?

Thanks for all the replies and suggestions (some already known to me). In the meantime, i devised my own solution to my specific problem. I put together short simple script that replaces OSM link with OTM one, when summit info page is opened in my browser. If you want to use my solution, follow the instructions below.

You will need Tampermonkey userscript manager or similar plugin for your browser. Create new custom script and paste my code into the edit box.

// ==UserScript==
// @name         SOTA Summit Info Page OSM->OTM Link Replace
// @namespace    http://tampermonkey.net/sota
// @version      0.1
// @description  Replaces OpenStreetMap link with OpenTopoMap link on the SOTA Summit info web page
// @author       S56KVJ
// @match        *www.sota.org.uk/Summit/*
// @grant        none
// ==/UserScript==

var links,thisLink;
links = document.evaluate("//a[@href]",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);

for (var i=0;i<links.snapshotLength;i++) {
    var thisLink = links.snapshotItem(i);
    thisLink.text=thisLink.text.replace('OpenStreetMap','OpenTopoMap');
    thisLink.href = thisLink.href.replace(RegExp('http://www.openstreetmap.org/.mlat=(.{1,8}).mlon=(.{1,9}).zoom=14.layers=M'),'http://www.opentopomap.org/#marker=14/$1/$2');
}

Save, test and enjoy.

Works with Tampermonkey in Firefox on my Windows 10/7 machines and Android phone and tablet.

2 Likes

Are there any Adroid GPS apps that use OpenTopoMaps?

73, Barry N1EU

Thank you Valdi, your small script works great for me too!

73 Martin, OE5REO

Jon GM4ZFZ has now added Opentopomap links to the summit pages:

image

Thanks Jon

3 Likes