Select to view content in your preferred language

Zooming to feature selected with message action

152
1
Jump to solution
Friday
Labels (1)
hbontrager_dgco
Occasional Contributor

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. 

0 Kudos
1 Solution

Accepted Solutions
hbontrager_dgco
Occasional Contributor

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. 

View solution in original post

0 Kudos
1 Reply
hbontrager_dgco
Occasional Contributor

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. 

0 Kudos