Select to view content in your preferred language

hide map features until button widget is clicked

160
5
Jump to solution
Wednesday
SarahRijneke
Frequent Contributor

Hello,

Is it possible to hide/turn off features in a map widget in experience builder until the user clicks a button, which would turn the feature on? The app that I'm creating shows approximate walk distances from points of interest on a map. I've configured buttons in a list widget that, when clicked, only shows the walk distances for a specific point of interest. Currently when the app is opened, walk distances for ALL points of interest appear making the map look very cluttered.

SarahRijneke_0-1765380552000.png

 

 

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Frequent Contributor

https://community.esri.com/t5/experience-builder-tips-and-tricks/create-a-filter-that-hides-everythi...

Here's a guide for a filter that hides everything until the user interacts with it.

GIS Developer
City of Arlington, Texas

View solution in original post

5 Replies
JeffreyThompson2
MVP Frequent Contributor

https://community.esri.com/t5/experience-builder-tips-and-tricks/create-a-filter-that-hides-everythi...

Here's a guide for a filter that hides everything until the user interacts with it.

GIS Developer
City of Arlington, Texas
SarahRijneke
Frequent Contributor

Awesome, thanks! I want to make my app as intuitive as possible and this is a great solution. Here's what I did:

- add a filter widget to my app

-and a new filter (OBJECTID is -1 OR Location is Predefine unique values)

SarahRijneke_0-1765467747209.png

SarahRijneke_1-1765467762221.png

-check the radio button to Apply this filter automatically

This configuration gives the users a pre-defined list of my points of interest to select from and only displays one at a time (assuming they don't turn off the Point of Interest radio button)

SarahRijneke_2-1765467900385.png

SarahRijneke_3-1765467917651.png

 

JeffreyThompson2
MVP Frequent Contributor

Thanks, @TonghuiMing.  Maybe we could get a future enhancement where we could make a Filter clause invisible? It would be helpful for this trick.

GIS Developer
City of Arlington, Texas
0 Kudos
TonghuiMing
Esri Regular Contributor

Hi @JeffreyThompson2, when you say make a filter clause invisible, do you mean for the builder or the runtime? Currently if not choosing "Ask for values" or display labels, the clause is "invisible" for end users.

JeffreyThompson2
MVP Frequent Contributor

Nice. I didn't know it did that.

GIS Developer
City of Arlington, Texas