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

umap: how to make hypertext links in popup table text

0

Anyone know the syntax to create hypertext link in one of the fields of the table view for popup text in umap?

Based on searching here, I thought it would be [[http://example.com]] or [[{ }]] but neither of those seem to work.

Any suggestions?

umap screenshot showing a popup with a table

umap screenshot showing a popup with a table link working

umap screenshot showing a popup with a table link not working

asked 05 Oct '15, 23:25

BlakeGirardot's gravatar image

BlakeGirardot
51228
accept rate: 0%

edited 06 Oct '15, 11:47


2 Answers:

2

Values starting with "http" should be automatically clickable.

answered 06 Oct '15, 07:04

ybon's gravatar image

ybon
626713
accept rate: 42%

Hi ybon, thank you for the reply. So just to be clear: if the value for the field starts with http it will be a clickable link, but if the value for the field starts with something else besides http, then any http link elsewhere in the field will not be a clickable link and there is no way to make it a clickable link? That seems to be the behavior I am seeing. I edited my original question to add a few more screenshots of that.

(06 Oct '15, 11:45) BlakeGirardot
1

Yes, the link is created only when the value starts with "http".

(06 Oct '15, 12:15) ybon

0

You seem to display OSM tags in a table. Please do not add any third-party syntax into the OSM database.

The link syntax (at least) works for normal markers with text. You can see a description of the syntax there:

screenshot with highlight of the button

answered 06 Oct '15, 08:03

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 06 Oct '15, 08:16

Hi, thank you for the reply. Don't worry no one is introducing other syntax the OSM DB.

(06 Oct '15, 11:53) BlakeGirardot