[uMap] Popup with conditional fields
Jo
winfixit at gmail.com
Sat Feb 28 21:35:29 UTC 2015
Hi,
I created a layer with data I downloaded with Overpass and saved as
GeoJSON. Doing it the dynamic way didn't work and I can't seem to clone the
Père Lachaise to see how it's done there. The explanation from the blog
didn't result in success.
Anyway, I added the following to the Popup definition for that layer:
{{https://d1cuyjsrcm0gby.cloudfront.net/{mapillary}/thumb-1024.jpg}}
{{{image}}}
**{species}**
*{species:nl}*
[[http://www.mapillary.com/map/im/{mapillary}|Virtuele wandeling]]
That works great if those fields are actually present, but I need to only
show that when the fields are available and omit it otherwise.
Jo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/umap/attachments/20150228/391216b2/attachment.htm>
More information about the Umap
mailing list