Skip to content

Instantly share code, notes, and snippets.

@mjuniper
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjuniper/cca42a8d65b78eff7804 to your computer and use it in GitHub Desktop.
Save mjuniper/cca42a8d65b78eff7804 to your computer and use it in GitHub Desktop.
var layer = new FeatureLayer(...);
var updateEndHandler = layer.on('update-end', function (args) {
if (args.error || (args.info && args.info.queryLimitExceeded)) {
//Possibly could just use layer.on('query-limit-exceeded', function () { ... });
console.log('could not draw all features at this extent');
} else {
//BUT what we really want to catch is this case
console.log('able draw all features at this extent');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment