Select to view content in your preferred language

Feature Layer with no Graphics

3404
2
Jump to solution
07-25-2014 10:15 AM
KyleDunaway
New Contributor III

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

0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor

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.

View solution in original post

0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor

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.

0 Kudos
KyleDunaway
New Contributor III

Thanks.  That clears it up.

0 Kudos