Select to view content in your preferred language

Best practice to allow user to select state in survey123 form then zoom to state in dashboard map

283
4
Jump to solution
10-02-2024 07:41 AM
dwold
by
Frequent Contributor

I have a survey that allows users to select a state and then county in a form. The state and county layers are hosted on my content as a hosted feature layer. The survey is linked to the web map with these layers

dwold_0-1727880054606.png

 

dwold_1-1727880054645.png

 

In the dashboard, I have a web map with the states and counties used in the Survey123 form. I have a category selector in the dashboard and would like the map to zoom to the selected state/county. The option to zoom to the selected state/county is not an option within the dashboard zoom configurations

dwold_2-1727880054614.png

 

dwold_3-1727880054650.png

 

Is there an option to get the map to zoom to the selected state/county?

1 Solution

Accepted Solutions
JenniferAcunto
Esri Regular Contributor

I'm guessing you are using the survey layer in your Category Selector. It will use the geometry of the layer in the selector to determine where to zoom the map to. Your survey appears to have null geometry. If you want the map to zoom to each state, I would use the State layer as the source for the Category Selector.

- Jen

View solution in original post

4 Replies
abureaux
MVP Frequent Contributor

Did my first reply disappear, or did I somehow reply to the wrong post? 😓 Oh well.

I moved this post for better visibility since this seems more like a Dashboard question rather than an S123 question.

However, I believe that the answer is "this can be done from the actions tab":

abureaux_0-1727880225742.png

 

JenniferAcunto
Esri Regular Contributor

You do have the option, you just need to toggle it on. The action points to your overall map, because it zooms the map not individual layers.

JenniferAcunto_0-1727894308402.png

 

- Jen
dwold
by
Frequent Contributor

Hi Jennifer,

Thanks for the reply. When I enable the Zoom function on the Testing for Nado map, it zooms to the middle of the Atlantic Ocean and not the selected state or county. I would like to see the individual layers listed in the Zoom option (i.e. State and County). These fields are captured in the survey. I am using the same state & county hosted feature layer in my survey and web map. I don't know when they are not available in the Zoom option.

Survey123/Feature Layer Data

dwold_0-1727983084121.png

Dashboard selectors:

dwold_1-1727983149121.png

Web Map layers:

dwold_2-1727983183671.png

Am I doing something wrong that these web map layers are not available under the Zoom option for the state and county selectors?

 

0 Kudos
JenniferAcunto
Esri Regular Contributor

I'm guessing you are using the survey layer in your Category Selector. It will use the geometry of the layer in the selector to determine where to zoom the map to. Your survey appears to have null geometry. If you want the map to zoom to each state, I would use the State layer as the source for the Category Selector.

- Jen