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

Umap - how to add an Image inside the pop-up

0

alt textI wanted to know if it is possible to insert an image in a pop-up. When I make a mark about a location, I can add some information in the pop-up, and when i click on the mark, the pop-up is displayed. I want to add an image there, im not sure if i can do it.

I am adding an example of what i want to do. I want to add to every drop a description + links + image of the place. I know how to add the description + link, but I haven't found the way to add an image, I am not sure if that is possible.

Note: That is a random image inserted in a random place just to make the example of what i want to do.

asked 04 Dec '14, 04:09

perla-rt's gravatar image

perla-rt
1216711
accept rate: 0%

edited 05 Dec '14, 20:19

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

3

Is your question about Leaflet or OpenLayers or some other framework?

(04 Dec '14, 10:03) scai ♦
1

Or is it about adding a note to openstreetmap.org

(04 Dec '14, 13:24) nevw
1

No (following editing by the original editor) it's about uMap.

(05 Dec '14, 20:18) SomeoneElse ♦

One Answer:

5

I have to add this code depends on what I want:

  • Image: {{http://imagen.url.com}} ⦁
  • Custom image width (in pixels): {{http://imagen.url.com|width}}
    Iframe: {{{http://iframe.url.com}}}
  • Custom iframe heigh (in píxels): {{{http://iframe.url.com|height}}}

answered 21 Dec '14, 19:03

perla-rt's gravatar image

perla-rt
1216711
accept rate: 0%

Source code available on GitHub .