Skip to content

Commit

Permalink
updating warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinr-maps committed May 28, 2019
1 parent e667eb0 commit 1878a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/Layers/FeatureLayer/FeatureManagerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ describe('L.esri.FeatureManager', function () {
server.respond();

basiclayer.setTimeRange(new Date('January 11 2014 GMT-0800'), new Date('January 13 2014 GMT-0800'));
expect(consoleWarnSpy).to.have.been.calledWith('You must set a timeField to manipulate the start and end time filter.');
expect(consoleWarnSpy).to.have.been.calledWith('You must set timeField in the layer constructor in order to manipulate the start and end time filter.');
});

it('should load more features with a single time field', function () {
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/FeatureLayer/FeatureManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export var FeatureManager = VirtualGrid.extend({
} else if (this._timeIndex) {
search = this._timeIndex.between(start, end);
} else {
warn('You must set a timeField to manipulate the start and end time filter.');
warn('You must set timeField in the layer constructor in order to manipulate the start and end time filter.');
return [];
}

Expand Down

0 comments on commit 1878a11

Please sign in to comment.