Highlight multiple features from different layers when single feature is selected

272
1
12-10-2019 12:27 AM
irtizahussain
Occasional Contributor

Hi.

I need to to highlight multiple features from different layers when a single feature is selected! For example, I have several points and polylines. When the point is selected, I would like the polyline that is pass through it highlighted as well.

If it is possible any suggestions are appreciated!

Thanks.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Irtiza,

   You would have to add a listener to the map.infoWindow > set-features event and then check to see if the features layer name is your point layer name and if so then take that feature geometry and execute a query on the polyline layer to select the intersecting line.