Last active
August 29, 2015 14:16
-
-
Save mjuniper/cca42a8d65b78eff7804 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 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