I was wondering if it is possible to have a map zoom to a feature selected from a message action rather than the primary feature selection which prompts the message action.
I am currently working on an application where a person can search their address (point feature) and get information associated with their voting precinct (polygon feature). I would like when a person searches their address for the map to automatically zoom to the precinct (not to their address).
Currently, I can get the selection of the address point to prompt the selection of the associated precinct using a message action (which allows me to display information about that precinct). However, I am struggling to find a way to have the map automatically zoom to the precinct polygon rather than the address point.
Solved! Go to Solution.
I figured out how to make this work. Instead of adding the message action to the search bar, I instead added a message action directly to the precinct layer in the data tab.
I figured out how to make this work. Instead of adding the message action to the search bar, I instead added a message action directly to the precinct layer in the data tab.