NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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).

permanent link

answered 27 Jan '21, 08:30

Cascafico's gravatar image

Cascafico
283202329
accept rate: 0%

edited 27 Jan '21, 09:02

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×314
×98
×18
×17

question asked: 10 Jan '21, 21:13

question was seen: 2,404 times

last updated: 27 Jan '21, 09:02

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum