Skip to content

Instantly share code, notes, and snippets.

@benheb
Created April 17, 2013 20:20
Show Gist options
  • Select an option

  • Save benheb/5407421 to your computer and use it in GitHub Desktop.

Select an option

Save benheb/5407421 to your computer and use it in GitHub Desktop.
_requestFeatures: function( direction ) {
var layer = this.layers[ 0 ];
var timeExtent = new esri.TimeExtent(new Date(this.fullTimeExtent[0]), new Date(this.fullTimeExtent[1]));
console.log('timeExtent', timeExtent.endTime)
var query = new esri.tasks.Query();
query.timeExtent = timeExtent;
query.outFields = [ "*" ];
// Query for the features with the given object ID
layer.queryFeatures(query, function( featureSet ) {
console.log('featureset', featureSet);
console.log('length', featureSet.features.length);
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment