Is it possible to configure URL parameters for Experience Builder to have specific layers enabled upon loading?
I currently have a handful of themes for which one-off WebMaps and WebApps were put together to satisfy each specific theme. I also have an application that contains all of these themes within 1 WebMap, and 1 Experience Builder application. I would really like to get rid of these one-off applications in favor of URL Parameters that enable specific layers within the all-encompassing application.
In this way, I could have a 'zoning' link, but the link is just a URL Parameter that enables the zoning layer within the 'master' application.
I tried to check the URL Parameters guide, but I didn't see anything specific to this desire.
Any help or guidance is always much appreciated.
Update: It does appear that there is a 'Layer_Visibility' parameter, but it isn't explained very well in the URL parameters help document.
The 'Layer_Visibility' parameter memorizes any layer visibility changes you make at run time. For example, if you enable this parameter in Experience Builder -> General -> Manage URL status -> Map widget -> Layer visibility, the app will track layer visibility changes and add these changes to the URL so you can open this app anytime with this link, exactly the layers you wish to see. You can also write 'Layer_Visibility' parameter value by yourself but I don't really recommend doing so as it would be very time-consuming.
Each map widget has its own 'Layer_Visibility' parameter. You can't set layer visibility for multiple map widgets. Also, it works only for map widgets in Experience Builder, so it doesn't work for other embedded applications. But of course, it works for web maps, they are the data sources of the map widgets.
If you have multiple maps that need this ability, I would recommend adding these maps to separate map widgets, enabling the layer visibility option in "Manage URL status", and going live to toggle on only the layers you wish to be visible. The app URL will be updated and ready for further use.
Thank you for this information, I believe this will be helpful in my efforts. I have about 15 'themes' for which I want/need specific layers to be enabled individually. (i.e. Zoning only layer turned on for a zoning map link, Plats only layer turned on for a plats map link, etc.) As such, I will be needing 15 different 'layer_visibility' URL parameters to develop a URL for each scenario.
Is the best way to accomplish this to:
1. Turn on the layer_visibility parameter for the Map Widget
2. set the layers on/off settings as necessary for each theme
3. Launch Live view to copy the URL for each specific scenario
Also, do you know if esri staff have put together a blog post of writing layer_visibility URL parameter examples? I found the layer_visibility URL parameters section in the help file, but I am not visualizing how each section of the parameter translates to each part of the application.
Thanks again for your help