Bookmarklet

From OpenStreetMap Wiki
Jump to: navigation, search

Bookmarklet are small pieces of JavaScript code which you store and run on-demand in your browser to conveniently access tools for your OSM work! For general info see Wikipedia about “bookmarklet”.

Which tools can be accessed via bookmarklets?

Bookmarklets can be easily written for all web-based tools which accept parameters via HTTP GET.

A simple list of all wiki pages linking to here – these pages may link to here because someone has made and published a bookmarklet for the described tool.

How-to set up

  • create a bookmark in your browser, and use the bookmarklet JavaScript code as URL. This could be achieved by bookmarking some arbitrary page and then editing the bookmark (maybe via the bookmark manager in your browser): Copy and paste the code into the URL field.
  • (the following method is not possible in this wiki) If you use the bookmark toolbar and if the bookmarklet is available as link then you can juse drag it do the toolbar.

How-to use

Usually by

  • clicking on the bookmark button in the bookmark toolbar,
  • selecting the bookmark from the list of bookmarks,
  • or opening the bookmark via a keyword/shortcut

while visiting another page on osm.org.

How-to code

A tip: