Why not ask your question on the new OpenStreetMap Community Forum?

I would like to create a uMap popup that also shows the coordinates of a marker. I tried to create a Popup content template in uMap with the placeholders {name}, {description}, {latitude} and {longitude}, but that does not work. Only the name and the description are shown. Am I using the wrong placeholders for the coordinates? Is there another way of showing the coordinates in the popup?

asked 18 Mar, 21:24

Palthe's gravatar image

Palthe
0224
accept rate: 0%

edited 27 Mar, 23:41


For the remote data in umap retrieved from overpass-turbo I use {lat} and {lon} for nodes:

properties of a node retrieved from overpass-turbo

permanent link

answered 27 Jul, 08:55

iriman's gravatar image

iriman
29791318
accept rate: 33%

edited 27 Jul, 08:57

Dear Iriman,

Thanks for your answer. Using {lat} and {lon} works perfectly!
I did not thought about using the abbreviated versions of the names.
Do you know if there is some kind of list with all the placeholder-codes one can use?

Best regards,
Boudewijn.

(27 Jul, 22:04) Palthe

You're welcome. We can use any key name from key:value pairs in our data in the form {key} as placeholder. In the example data in picture above we can use {name}, {shop}, {lat}, {lon} and {id}. {id} will generate a mix of type and id values: {type}/{id}. I didn't find a list of placeholders. Happy that my suggestion also works for manual markers!

(29 Jul, 07:27) iriman
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:

×310
×144
×22
×3

question asked: 18 Mar, 21:24

question was seen: 960 times

last updated: 29 Jul, 08:13

powered by OSQA