Skip to content

Instantly share code, notes, and snippets.

@odoe
Created January 25, 2016 16:52
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 odoe/fb483f2c32a7a09ac2e5 to your computer and use it in GitHub Desktop.
Save odoe/fb483f2c32a7a09ac2e5 to your computer and use it in GitHub Desktop.
if (has("featurelayer-debug")) {
// lazy-load dojo/aspect only when needed
require(["dojo/aspect"], function(aspect) {
aspect.after(featureLayer, "selectFeatures", function(args) {
console.debug("Object IDs count: ", args.objectIds.length);
// maybe write out to a log file
}, true);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment