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

Is there a way of filtering which uMap layers are shown and which are hidden by default in an embedded iframe?


I have a map in uMap with 80 imported layers which I would like to display in different arrangements using iframes (with one iframe per arrangement).

Making a new map for each of those arrangements is certainly an option, but it will be nightmarishly labourious to maintain and update.

It would therefore be practical if there was a way of filtering which layers are to be shown using the parameters of the iframe, either based on the name of the layer or on one of the layer's other parameters.

There at least seem to have existed options for exporting iframes according to the wiki ( https://wiki.openstreetmap.org/wiki/UMap/Guide/Export_data_of_my_uMap ), but I can't find any settings affecting the embedding code in the current version at https://umap.openstreetmap.fr/.

asked 24 Oct '23, 10:16

BSKK's gravatar image

BSKK
16112
accept rate: 0%


If you click share on the umap and then select "Export Options" in the new panel at the right, there is a switch that is labelled "Keep current visible layers". Does this do what you want?

permanent link

answered 25 Oct '23, 02:16

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

1

You just saved me a lot of future headaches! I could have sworn I had tried that option to no avail, but the "Export Options" do indeed work also for iframe embedding. Thank you!

(25 Oct '23, 16:48) BSKK

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:

×315
×314
×92
×32
×15

question asked: 24 Oct '23, 10:16

question was seen: 1,015 times

last updated: 25 Oct '23, 16:48

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