Select to view content in your preferred language

Select a target for button action

538
2
Jump to solution
10-23-2024 09:40 AM
CS_VT
by
Regular Contributor

I'm trying to build an app that can click through the layers in the map and only show one at a time. I.E. Clicking on Button A shows Layer A and hides Layers B,C, and D.

 

I cannot figure out how to Select a Target widget for an action. It feels like I should just be able to click on a widget after I've pressed the Select a Target button, but that has not been the functionality I've experienced.

This feels a little like asking "how can i get a new window to open in the file explorer in windows?" but I dunno. Maybe it's something I'm missing. Please help.

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Frequent Contributor

There are only a limited number of things that can be done with a Button Widget, making links, controlling Sidebars and opening widgets in a Widget Controller.

Here are a few ways for managing groups of layers. The Exclusive Visibility method is probably best for you. If you want buttons, look at the Section Widget or Bookmark Widget options.

GIS Developer
City of Arlington, Texas

View solution in original post

2 Replies
JeffreyThompson2
MVP Frequent Contributor

There are only a limited number of things that can be done with a Button Widget, making links, controlling Sidebars and opening widgets in a Widget Controller.

Here are a few ways for managing groups of layers. The Exclusive Visibility method is probably best for you. If you want buttons, look at the Section Widget or Bookmark Widget options.

GIS Developer
City of Arlington, Texas
CS_VT
by
Regular Contributor

This worked! I was able to implement it in the live map with little issue. 

It still feels a little funny that a button might have such a narrowly-defined functionality. 

0 Kudos