Hey guys, I am trying to filter out the geometries in a feature layer using a select box.
In c# you could just do a query on a layer then use the function featureLayerName.Update(); to refresh.
In javascript, I have something like this
query.where = "argument"
featureLayerName.selectFeatures(query, FeatureLayer.MODE_SNAPSHOT, function(results){
featureLayerName.refresh();
});
I did a queryCount and it returned the correct count, which tells me the query is working just fine. so I must be doing something wrong after I get the results.
heres a fiddle
the code in question is in the councilFilter() function.
Thanks.