Filtering a CSV Layer

769
2
Jump to solution
11-15-2016 08:57 AM
ChristopherSchreiber
Occasional Contributor II

Hello all,

I am adding a CSV layer to my JS map. Is it possible to filter the layer by attribute values using the JS API?

I have tried using the "setDefinitionExpression" method but it seems to only work with Esri  Map services or Feature Services. Am I missing something?

Thank you!

Chris

0 Kudos
1 Solution

Accepted Solutions
JohnGrayson
Esri Regular Contributor

Check out the doc: CSVLayer | API Reference | ArcGIS API for JavaScript 3.18 

  • Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries.

View solution in original post

2 Replies
JohnGrayson
Esri Regular Contributor

Check out the doc: CSVLayer | API Reference | ArcGIS API for JavaScript 3.18 

  • Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries.
ChristopherSchreiber
Occasional Contributor II

Thanks!

0 Kudos