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

clickable image in a popup

0

Hello, I would like to add a image to a popup. And when you click the image it should send you to a other website like youtube.

How to do this?

Best regards, Stef

asked 27 Mar '22, 22:58

stef's gravatar image

stef
11111
accept rate: 0%

edited 30 Mar '22, 14:06

TZorn's gravatar image

TZorn
12.3k764225

2

What software are you asking about? UMap?

(28 Mar '22, 06:33) H_mlet
1

yes i use umap

(30 Mar '22, 13:34) stef

Sorry, I got no notification. I hope TZorn's answer is not too late. :-)

(01 Apr '22, 23:38) H_mlet

One Answer:

2

You can use this syntax:

[[URL|{{image URL}}]]

e.g.

[[https://www.openstreetmap.org|{{https://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Openstreetmap_logo.svg/240px-Openstreetmap_logo.svg.png}}]]

answered 01 Apr '22, 22:44

TZorn's gravatar image

TZorn
12.3k764225
accept rate: 15%

1

Full documentation : https://wiki.openstreetmap.org/wiki/UMap/Guide/Text_formatting

It might be useful to add this particular example to the doc though. Not exactly easy to build.

(01 Apr '22, 23:47) H_mlet

Source code available on GitHub .