Show a feature layer pop-up when address is searched

672
1
10-20-2017 10:55 AM
Status: Open
jchester73
New Contributor III

In some maps it would be nice to be able to show a pop-up for a feature layer when an address is searched. An example would be a Ward Map. When the address is searched, the Ward pop-up for that address is shown rather than the address itself. Better yet, one pop-up to show the address searched as well as the Ward number.

1 Comment
by Anonymous User

Janet great idea, I agree, that would be great, to have out of the box.

Currently, I have wired the Search widget to fire a click event at the x,y where the result is returned; or the center if it is is a polygon like a parcel... when the user clicks on the Result in the List returned by the Search widget. Example: www.sagis.org/map   I did that, just in case the user wanted to select a result from the list. But, you could just wire it to automatically click the first result in the list (if >1 results are returned; otherwise, do nothing) and then execute a click event on the map.