csv = new CSVLayer("./demo.csv", { id: "locations_in_bbox", maxRecordCount: 3000 });
Solved! Go to Solution.
Dawen, because we have no concept of readonly properties in JavaScript, maxRecordCount is a property of a FeatureLayer that is technically writable, but is really only intended to learn what value has been set by ArcGIS Server when interacting with a particular service.
in general, the same concepts for all other graphicsLayers is relevant to a CSV layer. its usually not an optimal user experience to have people interacting with more than 1,000 individual features.
Determining Limits for Map Graphics
https://developers.arcgis.com/javascript/jshelp/limits_for_graphics.html
dawen,
you might consider publishing the data as an ArcGIS Online hosted feature service and updating the maxRecordCount property of the service itself.
http://forums.arcgis.com/threads/94744-Is-it-possible-to-change-the-Max-Record-Count-on-an-AGOL-host...