When I select a feature on a map and use popup.getSelectedFeature() I get a great JSON object that has all kinds of information about the feature, including: feature attributes, the layer the feature is on, etc. That's great! Is it possible to get the same information when I don't have a map loaded?
I have a page in my application where I don't have a map at all. I just show information from my own custom database that relates to features. I want to be able to open the same custom info panel that I created for use on my map page on this other page. To do that, I need the following information for the feature:
- feature._layer.id
- feature.geometry
- feature.geometry.type
- feature.attributes
- feature.getLayer().applyEdits
I looked into using the ArcGIS REST API query, but it doesn't give me any information about the layer or the full geometry object.
I hoping there is a way to select a feature using its ObjectID without a map. Thanks!