Solved! Go to Solution.
Matt,
Here is a quick example of working with the deferred:
curentLayer.selectFeatures(query, function(result){
//todo work with the selection result
//now that the selection is complete
});
Matt,
It looks like you need to wait for the selection method to complete before you try and access the selected feature. The select features method returns a deferred so you need to wait for the deferred to resolve.
thanks for the tip Robert, I'm trying timeouts and promises to see if this fixes it, I'll share the results when I have them
Matt,
Here is a quick example of working with the deferred:
curentLayer.selectFeatures(query, function(result){
//todo work with the selection result
//now that the selection is complete
});