This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Hide the representation in popup if some attributes are mising

0

Hi

There are some attributes which some POIs not having them. I want to hide the popup's representation related to the attribute, if the attribute is missing.

What I want to do is something like below:

# {title}
{description}
{{{thumbnail}}}
[[{url}|Wikimedia]] | [[https://maps.google.co.jp/maps?ll={lat}.{lng}&q={lat},{lng}&hl=ja&t=m&z=17|Google Maps]] | {if monumento}[[{monumento}|Monumen.to]]{/endif}

Does uMap's template system have such kind of function?

Regards, Kohei

asked 02 Oct '16, 09:54

kochizufan's gravatar image

kochizufan
11112
accept rate: 0%

Source code available on GitHub .