Select to view content in your preferred language

Hide Layers in Map-Widget

612
2
01-25-2024 01:58 AM
Status: Open
AndreasEugster
Frequent Contributor

Please enhance the Map-Widget so we can hide layers (similar to the functionality from the "stanalone" Map-Layers-Widget #M10423

 

enh_mapwidget.png

2 Comments
JeffreyThompson2

The purpose of the Map Layers Widget is to provide the optionality that the Layers option in the Map Widget does not. The Layers option is intended to provide a quick set up option for people who just want the defaults. 

I assume you are asking for this because you want to hide map layers in a widget that looks and acts like the default widget. So you can build your own.

  1. Add a Widget Controller.
  2. Place a Card in the Widget Controller.
  3. Add a Section Widget to the Card.
  4. In one section, add a Map Layers Widget. In the other, add a Legend Widget.
  5. Add a Views Navigation Widget to make the tabs.
AndreasEugster

Thank you for your reply. I understand your inputs. It would still be usefull to enhance the default options on the MapWidget.

The actual use case is that I have a sidebar with the Map Layers widget (menu control buttons and view carousel). For quick access, I would also like to have the map widget layers displayed. Therefore, I currently have 2 "layer widgets" that do not display the same content.

I have already tried the widget controller, but I'm not yet really satisfied with handling the Widget Controller on top of a Map Widget with corner-widgets activated. E.g. I need the Measure-Widget (no stanalone widget available yet)… If a WidgetController, I would like to have it top-right first position.. but thats blocked from the measure-widget.