[uMap] image tag in popups

Jean-Guilhem Cailton jgc at arkemie.org
Mon Aug 1 09:26:33 UTC 2016


Yes Marc, if you want uMap to display images directly in popups (with
{{image}} syntax), you need to give "links to pure images", as Vincent
explained with an example in his 2/ paragraph.

So, for example, instead of the URL to the page about the image file
(eg
"https://commons.wikimedia.org/wiki/File:%22Gevecht_van_Jacob_met_de_Engel%22_door_Jacques_Lipchitz,_1932.jpg"),
use the URL of the image, such as:
"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/%22Gevecht_van_Jacob_met_de_Engel%22_door_Jacques_Lipchitz%2C_1932.jpg/800px-%22Gevecht_van_Jacob_met_de_Engel%22_door_Jacques_Lipchitz%2C_1932.jpg")


(And add another pair of braces to access the content of a field, e.g.
{name} to display the content of the name field, or {{{link}}} to
display the image at the URL contained in the link field.)

Jean-Guilhem


Le 01/08/2016 à 10:44, Marc Gemis a écrit :
> Jean-Guilhem,
>
> I fear this only works for links to pure images, not the wikimedia
> pages with the image in it. This latter URL is used quite a lot.
>
> thanks for your input
>
> m
>
> On Fri, Jul 29, 2016 at 10:43 AM, Jean-Guilhem Cailton <jgc at arkemie.org> wrote:
>> Hi Marc,
>>
>> {{{link}}} works in popup content template*, where link is a field holding
>> the URL of the photo to display, so you might try with three braces, if you
>> haven't already.
>>
>> Best regards,
>>
>> Jean-Guilhem
>>
>> *: (for instance in http://u.osmfr.org/m/94633/)
>>
>>
>> Le 29/07/2016 à 09:57, Marc Gemis a écrit :
>>
>> Alexander, thanks for your reply,  but I know that it works when you
>> put the url directly with {{ and }}
>>
>> But in my case the URL comes from a field retrieved via OverPass. To
>> display a field I need e.g. {{name}}, so to show the URL, I can use
>> {{image}}. But how do I show the image instead of the url ?
>> {{ {{image}} }} does not work.
>>
>>
>>
>> On Fri, Jul 29, 2016 at 9:51 AM, Alexander Zatko
>> <alexander.zatko at nabezky.sk> wrote:
>>
>> something like this?
>>
>> http://umap.openstreetmap.fr/en/map/vylet-do-stiavnickych-vrchov_18071#16/48.4166/19.0103
>>
>> hee is example code:
>>
>> {{http://turistika.freemap.sk/upload/gallery/0/100/20140927211338_713a6t1o9l146p9le3ete1fbl2.jpg}}
>> [[mailto:myname at gmail.com|MAIL]]
>> [[http://turistika.freemap.sk/upload/gallery/0/100/20140927211338_713a6t1o9l146p9le3ete1fbl2.jpg|zväčšiť]]
>>
>>
>>
>> On 29 Jul 2016, at 05:53, Marc Gemis <marc.gemis at gmail.com> wrote:
>>
>> Hallo,
>>
>> I try to display the photo behind the image tag in a popup. I have
>> tried putting different number of braces around the word "image", but
>> nothing works.
>> Is it possible to immediately display the photo specified by the url
>> in the image tag ?
>>
>> The map is
>> http://umap.openstreetmap.fr/en/map/art-in-town_91815#18/51.18178/4.41586
>>
>> regards
>>
>> m
>>
>> _______________________________________________
>>
>>
>>
>>
>> --
>> "Transparency International’s definition of corruption is: ‘the abuse of
>> entrusted power for
>> private gain’."
>> https://www.transparency.org/whatwedo/publication/preventing_corruption_in_humanitarian_operations
>>
>> _______________________________________________
>>





More information about the Umap mailing list