Hi, I am trying to customize the Exp Building Map Widget with a on click event to highlight and select the features I click on at that spot for instance both the building and parcel at that point. The issue I am having is it will not highlight and I haven't been able to figure out why.
Here is my snippet of code in the widget.tsx file:
I used the highlight method. Here is the link to the sample code from ESRI.
https://developers.arcgis.com/javascript/latest/sample-code/highlight-point-features/
Did you use a Web Map or a Web Scene for the Map Source?
I used a Web Map.
I have tried that as well but so far it hasn't lit the feature. Are you doing in the Map Widget? Did you set it up in the widget.tsx?
I set it up in the widget.tsx. I used the hitTest() method to return the layers I clicked on.
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest
https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/