Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added warning if setTimeRange() is called without a timeField #1152

Merged
merged 2 commits into from
May 28, 2019

Conversation

gavinr
Copy link
Contributor

@gavinr gavinr commented May 24, 2019

added warning per @jgravois comment #1148 (comment). I'm not quite sure if return []; is the correct thing to do here ... open to suggestions.

search = this._timeIndex.between(start, end);
} else {
warn('You must set a timeField to manipulate the start and end time filter.');
Copy link
Contributor

@jgravois jgravois May 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great to me. it wouldn't hurt to be even more explicit though.

'You must set timeField in the layer constructor in order to manipulate the start and end time filter'

@jgravois
Copy link
Contributor

after you merge i'd recommend taking a stab at shipping a patch release (to make sure you can).

  1. use v2.2.4...HEAD to update the CHANGELOG manually
npm run publish

@gavinr gavinr merged commit adedb89 into Esri:master May 28, 2019
@gavinr gavinr deleted the setTimeRange-warn branch May 28, 2019 12:50
@gavinr
Copy link
Contributor Author

gavinr commented May 28, 2019

@jgravois did you mean to say npm run release (not npm run publish) ?

@jgravois
Copy link
Contributor

jgravois commented May 28, 2019

did you mean to say npm run release?

exactly! 👮

jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
added warning if setTimeRange() is called without a `timeField`
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
added warning if setTimeRange() is called without a `timeField`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants