Skip to content

Instantly share code, notes, and snippets.

@odoe

odoe/filter.js

Created Aug 31, 2015
Embed
What would you like to do?
var layerView = view.getLayerView(fLayer);
var count = layerView.graphics.filter(function(x) {
return view.extent.contains(x.geometry);
}).length;
console.log(count); // yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment