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

uMap Marker description: picture not visible

0

Hello together,

I'm working with uMap and want to add descriptions to my markers which include images.

Syntax help gives 2 possibilities:

1. Image only: {{http://image.url.com}}

2. Image and width in pixels: {{http://image.url.com|pixels}}

I tried both types but as a result the marker description doesn't show the image but only the place holder for missing link.

As type for the marker popup description I tried both "pop up (big)" and "sitebar". In the example I refer to a wikipedia picture just to ensure open access.

Can somebody help?

Error and code snippet (sorry for partial german):

alt text

alt text

asked 10 Jan '21, 21:13

04Wank07's gravatar image

04Wank07
11112
accept rate: 0%


One Answer:

0

You need to add a property (a column) in layer table calling for instance: "imgurl" and then in pop-up content template, insert {{{imgurl}|300}}.

Once you are done, add marker inserting the image url (I usually set the url of wikipedia raw image, known as "Original size").

In this example, the marker on the right works fine (I set 240 width size).

answered 27 Jan '21, 08:30

Cascafico's gravatar image

Cascafico
283202329
accept rate: 0%

edited 27 Jan '21, 09:02

Source code available on GitHub .