How to switch from ShowFeatureDetails to Identify from a selection?
Hi,
I'm looking for a way to change the action during the click from a selected feature. Background, we have a set of individual layers that users can identify on from a single click currently. What I'd like to adjust is when someone searches by an address and gets the result, when they click on that result instead of "ShowFeatureDetails", I'd like it to identify the multiple layers from the geometry of that selected point. I tried changing the:
"eventMappings" : {
"ResultsListFeatureClickedEvent" : [ "ShowFeatureDetails", "ZoomToFeature", "HighlightFeatureDefault" ],
section to "Identify", but it looks like that it can't find the geometry to use the identify command based on the selection. I get a (Cannot read property 'attributes' of undefined) error thrown. Is there some code to include in the "Results" section that will pass the geometry from a selected feature so that the 'Identify' command will complete its functions?
Goal here: Select address, click on desired address from results, display identified data from layers at that point and zoom to feature with no further clicks needed.
Thanks!
Brian
Please sign in to leave a comment.
Comments
0 comments