I have a feature layer with no graphics.
self.featureLayer.graphicsCount is 0.
The feature layer is loaded from a webmap, when the webmap loads I grab the featureLayer and store it.
The feature layer does have features, these features are just not drawn on the map, and never will be.
Is there a way to access these features attributes?
I dont need to edit the feature layer ever, just read the data tables.
I know i can query the featureLayer for the featureSet, and get the data that way but I was wondering if there is a simple way.
ie. featureLayer.features? , wish it was that easy. haha
Thanks for any help
Solved! Go to Solution.
The feature layer has a property called graphics (that it inherits from the graphics layer). This property contains all the features that are currently being displayed on the map. Since you say your features will not be drawn on the map, the property is understandably empty.
The only way to get features that are not drawn on the map is to query.
The feature layer has a property called graphics (that it inherits from the graphics layer). This property contains all the features that are currently being displayed on the map. Since you say your features will not be drawn on the map, the property is understandably empty.
The only way to get features that are not drawn on the map is to query.
Thanks. That clears it up.