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

Add case to _featureWithinTimeRange(feature) #1174

Merged
merged 2 commits into from
Nov 8, 2019
Merged

Conversation

pjbiogit
Copy link
Contributor

@pjbiogit pjbiogit commented Nov 7, 2019

Add a case for when the feature's time range contains the time range given in the to and from options for the layer. This way, a feature will always show up during its specified time range.

#1173

Add a case for when the feature's time range contains the time range given in the to and from options for the layer. This way, a feature will always show up during its specified time range.
@gavinr
Copy link
Contributor

gavinr commented Nov 8, 2019

@pjbiogit Thank you very much for the issue logged and PR!

We would like to include a unit-test update that covers your case illustrated here (I think it would go in here) - are you able to find some time to do that (feel free to just add an additional commit onto this branch/PR)? If not, one of us will try to get to it.

Added test case for when a feature's start and end time contain the from and to times.
@pjbiogit
Copy link
Contributor Author

pjbiogit commented Nov 8, 2019

Attempted to add the test case but it seems something has gone wrong. I'm not very familiar with this so let me know if you see where I've gone wrong.

@jgravois
Copy link
Contributor

jgravois commented Nov 8, 2019

no worries. its just a lint error: https://travis-ci.org/Esri/esri-leaflet/builds/609303742

@gavinr gavinr merged commit c64b06c into Esri:master Nov 8, 2019
@gavinr
Copy link
Contributor

gavinr commented Nov 8, 2019

thanks @pjbiogit!

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