Skip to content

Instantly share code, notes, and snippets.

@govvin
Created April 22, 2018 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save govvin/bb6e8b7b4e49c8d73a2009387dafabbd to your computer and use it in GitHub Desktop.
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
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