[uMap] Popup with conditional fields

Yohan Boniface ybon at openstreetmap.fr
Sat Feb 28 21:43:31 UTC 2015


That's not possible at the moment.
The only option I see is to filter the data itself before adding it to 
the map.

On 28/02/2015 22:35, Jo wrote:
> 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
>
>
>
> _______________________________________________
> Umap mailing list
> Umap at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/umap
>





More information about the Umap mailing list