Created
August 31, 2015 16:26
-
-
Save odoe/01e603d5259f3337d847 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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