Esri / cedar

JavaScript Charts for ArcGIS
https://esri.github.io/cedar
258 stars 238 forks source link

create a sample(s) demoing recent feature layer and JSAPI improvements in querying #439

Open tomwayson opened 6 years ago

tomwayson commented 6 years ago

Examples:

tomwayson commented 6 years ago

Thanks @jgravois for creating an initial bin showing how to use cedar w/ client-side LayerView queries!

https://jsbin.com/juqafec/edit?html,output

tomwayson commented 6 years ago

In the above bin some other code (JSAPI event handlers) executes the client-side queries and then hands the features off to cedar.

It would be better if cedar could actually initiate client-side LayerView queries. One idea for how to do that would be to add a new optional layerView property to a dataset that could be used in place of url. If that exists, chart.query() would call layerView.queryFeatures(query) instead of appending the query params to the url and fetching the features.