Is it Possible to Trigger an Action from Basemap Widget to Turn Off Specific Layer in Map Layers Widget?

176
2
05-16-2024 07:43 AM
PDSGIS_Department
New Contributor II

I am working in Experience Builder Developer Edition 1.14. What I hope to achieve is when a user selects a specific Aerial basemap, in the 'Basemap Gallery' widget, it triggers an action to turn off the City Boundary layer, in the 'Maps Layer' widget. Currently, it does not appear that 'Action' is an option, when configuring the 'Basemap Gallery' widget.

Any help would be greatly appreciated. Thanks.

PDSGIS_Department_0-1715870518890.png

 

2 Replies
JeffreyThompson2
MVP Regular Contributor

Since you are using Developer Edition, you can build a custom widget that uses the reactiveUtils.watch() method to see which basemap is loaded turn off your City Boundary layer.

GIS Developer
City of Arlington, Texas
0 Kudos
PDSGIS_Department
New Contributor II

Thanks for the feedback. I was hoping to not to create from scratch, but seems that is the way to go. I have not created a new widget, for Experience Builder, yet. I will look into using the method you recommend. Hopefully I can figure it out. If not, you may be hearing from me.

Thanks,

Joe-

0 Kudos