OSM Smart Menu

From OpenStreetMap Wiki
Jump to navigation Jump to search
OSM Smart Menu
OSM Smart Menu.png
Author: jgpacker
License: GPL v3 (free of charge)
Platforms: Windows, Windows XP, Linux, macOS, and Android
Languages: English, Brazilian Portuguese, and Chinese (Taiwan)
Source code: Blacktocat.svg jgpacker/osm-smart-menu
Programming languages: HTML, CSS, and TypeScript

Helps OpenStreetMap contributors to easily switch between different maps and analysis tools from the community.

This browser extension[1] is officially available for Google Chrome[2] and Mozilla Firefox (for Desktop[3] and Android[4]).

It helps users to open links related to OpenStreetMap, based on parameters from the current page. Supported parameters include map parameters (zoom, latitude and longitude) and OpenStreetMap attributes (user name, node ID, changeset ID, etc). In a nutshell, this extension is a superior alternative to Bookmarklets.

New features are announced at the author's user diary.

Report bugs or request features

You can send a message to the author's OpenStreetMap account or open a new issue at Github.

Configuration

Besides the default list of links, users can add their own links!

Easy method to add new links

The easy way is to simply go to the desired website (example), and click on the OSM extension button. If the website's URL pattern is recognized, an option will appear to add the current page's link to the list.

However,

  1. It only works for maps (i.e. with latitude, longitude and zoom parameters);
  2. It only works for a few known URL patterns.

Advanced method to add new links

In the configuration page, new links can be added with an URL Template. See some examples below:

  • Edit with JOSM or Merkaartor: https://www.openstreetmap.org/edit?editor=remote#map={zoom}/{latitude}/{longitude}
  • Compilation of several map links: https://geohack.toolforge.org/geohack.php?params={latitude}_N_{longitude}_E
  • Query OSM Elements: http://www.overpass-turbo.eu/?C={latitude};{longitude};{zoom}

At least one bracket parameter must be inside the URL Template. The URL Template supports the following parameters:

  • {zoom}
  • {latitude}
  • {longitude}
  • {osm_changeset_id}
  • {osm_user_name}
  • {osm_node_id}
  • {osm_way_id}
  • {osm_relation_id}
  • {osm_tag_key} and {osm_tag_value}

This is still an experimental feature.

See also

  • OpenSwitchMaps
  • Bookmarklet - 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
  • Bookmarklets - List of OSM related bookmarklets

References