23
5

When sending an OpenStreetMap URL to somebody, how can i add a marker for them?

asked 07 Jul '10, 16:08

Richlv's gravatar image

Richlv
1.3k112224
accept rate: 25%


First option: openstreetmap.org

Within the "Share" menu on the OpenStreetMap website you will find a checkbox labelled "Include marker". The placement of the marker can be changed using drag & drop. Share the marked location by copying the "Link" or "Short link" from the field below the checkbox.

This option has the advantage of working directly on the main OpenStreetMap site and requires no external tools.

(Note: This section was edited to reflect new features introduced to the OpenStreetMap website. It originally suggested manually editing the URL.)


Second option: external services

http://m.osmtools.de/ provides a simple graphical interface for placing a marker.

umap is an Open Source solution that offers map customization options far beyond simple markers. This is probably the most advanced hosted offering in the OSM ecosystem.

Another rather sophisticated service is offered by ESRI:
http://www.arcgis.com/home/webmap/viewer.html
OpenStreetMap is just one of several available base maps.


Third option: self-hosted map

The OSM SlippyMap Generator "Easymap" provides a wide range of options for configuring a map. Note that it outputs maps that you embed into a web page, so you will need some webspace!

You can find the tool here:
http://osmtools.de/easymap/index.php?lang=en&page=editor

permanent link

answered 10 Jul '10, 09:31

Tordanik's gravatar image

Tordanik
8.7k1179104
accept rate: 33%

edited 23 Apr '14, 14:09

The first option is very ugly and inaccessibe for non geeks. There should be "place a marker" link instaed.

(02 Jul '11, 14:44) gorn
1

The mlat/mlon solution can be started with double clicking the desired place, so it will be centered first.

(02 Aug '11, 20:14) kempelen
2

Documentation can be found in the wiki: http://wiki.openstreetmap.org/wiki/Browsing#Adding_a_Marker

(03 Aug '11, 22:04) mmehl

this is outdated information

(20 Aug '13, 11:02) gorn

@gorn: which? The wiki page is updated. This answer too.

(20 Aug '13, 12:20) aseerel4c26 ♦

thanks for update, it is fine now.

(20 Aug '13, 12:37) gorn
showing 5 of 6 show 1 more comments
11

For long URLs - right click "Permalink" in the lower right corner of the main website, copy it. Modify the link by changing "lat" and "lon" instances to "mlat" and "mlon"

For short URLs - right click "Shortlink" in the lower right corner of the main website, copy it. Modify the link by adding "?m" at the end.

Note that these methods always center the map on the marker. If you want the marker to be offset from the center of the map, you can add "mlat" and "mlon" to the long URL instead of modifying "lat" and "lon" - for example,

permanent link

answered 07 Jul '10, 16:13

Richlv's gravatar image

Richlv
1.3k112224
accept rate: 25%

edited 07 Jul '10, 16:15

Since July 2013 you can create one marker on the slippy map on http://www.openstreetmap.org by using the share menu on the right panel and then check "Include marker". Then move the marker to the desired position and copy the link in the small text box below in the right panel.

permanent link

answered 08 Aug '13, 15:38

aseerel4c26's gravatar image

aseerel4c26 ♦
28.2k13210485
accept rate: 17%

meta: a general problem with this help page - how to deal with outdated answers? Except editing by the original creator, or by users with a high karma (wrong attribution then), ... And where is the meta discussion? ;-) Yes, we can/should delete this (and responding comments) afterwards.

(08 Aug '13, 15:57) aseerel4c26 ♦

If you only need a static image of the rendered OpenStreetMap (i.e. without zooming and panning), have a look at http://dev.openstreetmap.de/staticmap/ and try the wizard mode to get a URL to a freshly generated picture which you can use in any web page. The wizard letzs you place multiple markers.

More information may be here: http://wiki.openstreetmap.org/wiki/Static_map_images

permanent link

answered 12 Jul '10, 17:30

stephan75's gravatar image

stephan75
12.1k349206
accept rate: 5%

edited 20 Jul '10, 22:25

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
59.9k73561937

1

Be sure to add the correct attribution though

(12 Jul '10, 17:56) Matt Williams

found a new one:

have a look at http://geojson.io and read its help text. You can draw geometries, display markers according to coordinate tables, overlay GPX or KML data, and finally share your map even privately.

(07 Jun '14, 09:37) stephan75

UMap also allows to place marker(s) and to do much more (draw lines on the map, add names and description to the markers, ...). However, if someone only wants one marker and nothing else using UMap is overkill and unnessarily complicated.

permanent link

answered 31 Jul '13, 23:26

aseerel4c26's gravatar image

aseerel4c26 ♦
28.2k13210485
accept rate: 17%

edited 31 Jul '13, 23:30

You can also go to Export > Embeddable HTML > Add a marker to the map, then copy the URL address from the Output field. You will have to remove the extra HTML code in that field, only using the "http://..." within quotes.

permanent link

answered 20 Jul '10, 14:18

MagicFab's gravatar image

MagicFab
71281322
accept rate: 20%

You can also go to Export > Embeddable HTML > Add a marker to the map, then copy the URL address from the Output field. You will have to remove the extra HTML code in that field, only using the "http://..." within quotes. MagicFab

This works really nicely (although there appears to be two "http://...." within the url output field & you'll only want the 2nd one).

Making this feature more obvious would make openstreetmap exponentially more useful.

(29 Jul '12, 22:07) thewm
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×63

question asked: 07 Jul '10, 16:08

question was seen: 54,860 times

last updated: 07 Jun '14, 09:37

powered by OSQA