Select to view content in your preferred language

FeatureLayer (created from JSON) & Definition Expressions

2980
2
04-26-2011 04:15 AM
AdamPfister
Esri Contributor
Are layer definition expressions supported on a Feature Layer that has been created using the initWithLayerDefinitionJSON method?  I've specified the fields in the layer definition JSON and just tried a simple "OBJECTID = 1" def query with no luck.

Any help would be greatly appreciated.

Thanks!
Adam
0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor
When using the initWithLayerDefinitionJSON method (what we refer to as feature collections), definition expressions are not honoured.
0 Kudos
AdamPfister
Esri Contributor
Thanks for the clarification, Divesh.
0 Kudos