I recently moved this node to a new location. What's the easiest way to show it on a map, and a marker where the previous location was?

asked 19 Dec '13, 10:40

SomeoneElse's gravatar image

SomeoneElse ♦
33.2k65344785
accept rate: 16%

Just to understand you correctly, you want to view both the previous position and the new one?

(19 Dec '13, 12:51) scai ♦

Currently, you don't have an "easy way" like in 2 mouse clicks to do this. But...

Here is one method I found:

- from the node history, you can copy the previous coordinates (in version 1 : "53.5999303, -1.0152212")
- click the button "share" and copy the "link" field http://www.openstreetmap.org/#map=19/53.59996/-1.01558 into your browser
- edit the URL and replace the older coordinates by the ones you got from the node history version 1 : "mlat=53.59993&mlon=-1.01522#map=19/53.5999303/-1.0152212" .(the "mlat" and "mlon" define the marker position and "#map" the slippy map central position)
- You get this result.

That's it.

permanent link

answered 19 Dec '13, 12:12

Pieren's gravatar image

Pieren
9.7k2075157
accept rate: 15%

edited 19 Dec '13, 12:33

2

Instead of editing the URL you can just copy'n'paste the coordinates into the search field and click on the first result. The marker will be added automatically. Note: This doesn't work for every locale. Some translations (e.g. german) display the coordinates using commas as decimal points (e.g. -1,01 instead of -1.01) which have to be replaced first.

(19 Dec '13, 12:46) scai ♦

Good try but the problem with this method is that the marker disappears when you close the search pan :( I didn't find a way to create an URL with the marker from the "find" tool.

(19 Dec '13, 12:57) Pieren
1

I just opened a ticket suggesting to add the marker automatically to the 'Location:' links of node histories.

(19 Dec '13, 12:58) scai ♦

Similar to Pieren's solution but a bit easier:

  1. do for all location links:
    1. (on the history page) right click one of the location links (e.g. http://www.openstreetmap.org/?lat=53.5999607&lon=-1.0152429&zoom=18 )
    2. open a new tab
    3. paste the URL (do not open yet)
    4. edit the URL: insert two "m" (before lat and lon) (e.g. http://www.openstreetmap.org/?mlat=53.5999607&mlon=-1.0152429&zoom=18 )
    5. open this URL
permanent link

answered 19 Dec '13, 15:53

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16241552
accept rate: 18%

more easy to use (but somehow hard to set up): use this JavaScript snippet (similar to the one in my comment over there). It converts all links to contain a "m" automatically. You can then open those links in new tabs to see the markers.

if (document.location.href.split('#')[0].split('/').length > 4) {
   if (document.location.href.split('#')[0].split('/')[3] === 'node') {
      $("div#sidebar_content div.geo a").each(function () {
                  $(this).attr("href", $(this).attr("href").replace(/([?&])lat=/, "$1mlat=").replace(/([?&])lon=/, "$1mlon="));
      });
   }
}
permanent link

answered 19 Dec '13, 16:53

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16241552
accept rate: 18%

edited 19 Dec '13, 19:25

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:

×78
×66

question asked: 19 Dec '13, 10:40

question was seen: 2,204 times

last updated: 19 Dec '13, 19:25

powered by OSQA