Created
April 17, 2013 20:20
-
-
Save benheb/5407421 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| _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