Hi everyone,
I have a GeoJSON layer that I have added to my webmap. I want to be able to click on the layer features and populate a sidepanel with elements based on the feature's properties (make request to db from app with Express query, populate sidepanel with returned array). How can I access the GeoJSON layer's properties for the feature that is being clicked? I looked at hitTest(), a MapView method. But surprised to see that GeoJSON is not a supported type of layer for the method.
Does anyone have any ideas on how I could achieve this? I'm able to access the properties on the popupTemplate fine. But I need more features than what the popupTemplate is giving me.
TLDR: Need to access GeoJSON properties from clicking element on map.
Thanks!
--------------------------------------------------
Application Developer, GeoMarvel