26
6

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.6k143039
accept rate: 27%


6 Answers:
53

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
10.9k1394134
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

Alas, no way to get a second marker...

(21 Apr '19, 05:06) jidanni
showing 5 of 7 show 2 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.6k143039
accept rate: 27%

edited 07 Jul '10, 16:15

5

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 ♦
32.2k16239552
accept rate: 18%

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 ♦
4

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.5k454209
accept rate: 6%

edited 20 Jul '10, 22:25

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
73.3k866641137

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
3

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 ♦
32.2k16239552
accept rate: 18%

edited 31 Jul '13, 23:30

2

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
77291322
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

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:

×79

question asked: 07 Jul '10, 16:08

question was seen: 81,396 times

last updated: 21 Apr '19, 05:06

powered by OSQA