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 '23, 21:24 Palthe edited 27 Mar '23, 23:41 |
One Answer:
For the remote data in umap retrieved from overpass-turbo I use {lat} and {lon} for nodes: answered 27 Jul '23, 08:55 iriman edited 27 Jul '23, 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.
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!