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
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
Is there an option to get the map to zoom to the selected state/county?
Solved! Go to Solution.
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.
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":
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.
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
Dashboard selectors:
Web Map layers:
Am I doing something wrong that these web map layers are not available under the Zoom option for the state and county selectors?
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.