Created
April 22, 2018 13:31
-
-
Save govvin/bb6e8b7b4e49c8d73a2009387dafabbd to your computer and use it in GitHub Desktop.
Bookmarklet to open an OpenStreetMap URL (node, way, changeset, etc.) in Level 0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: a = document.location.href.split('/'); | |
if (a[2] == 'www.openstreetmap.org') { | |
document.location.href = '%20http://level0.osmz.ru/?url=' + a[3] + '/' + a[4] | |
} else { | |
alert('This%20is%20not%20a%20valid%20OSM%20page.') % 20 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment