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 |
If you click 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? answered 25 Oct '23, 02:16 InsertUser 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
|