You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser and version: Chrome 73.0.3683.86 and Firefox 66.0.2 (64 bits)
Version of Leaflet (L.version):
Latest
Version of esri Leaflet (L.esri.VERSION):
master
Steps to reproduce the error:
I'm using the from and to in the featurelayer option and everything work fine. But I'm trying to use the method setTimeRange with the same date that I used for the options and it doesn't work. I got thise error " FeatureManager.js:365 Uncaught TypeError: Cannot read property 'between' of undefined"
I was expecting: To filter my data by using the time range.
The text was updated successfully, but these errors were encountered:
Hi again, I found the "problem". I need to use the "timeField" option when i'm using the method setTimeRange. But when the from and to are used as an options, you don't need to use "timeField" option. If this can help someone.
this happens because calling setTimeRange() requires that we invoke logic internally to filter features that have already been queried from the service and displayed previously to ensure that they are within the new time range.
when you set the constructor option, we only ever fetch features that match the time filter, so we don't need to know the name of the field that stores the information.
all that said, if anyone is keen to make this easier on the next guy or gal in @geocot's shoes, they could insert a console.warn in the block below to let them know that its only possible to manipulate a time filter if a timeField is provided in the constructor.
Browser and version: Chrome 73.0.3683.86 and Firefox 66.0.2 (64 bits)
Version of Leaflet (
L.version
):Latest
L.esri.VERSION
):master
Steps to reproduce the error:
I'm using the from and to in the featurelayer option and everything work fine. But I'm trying to use the method setTimeRange with the same date that I used for the options and it doesn't work. I got thise error " FeatureManager.js:365 Uncaught TypeError: Cannot read property 'between' of undefined"
I was expecting: To filter my data by using the time range.
The text was updated successfully, but these errors were encountered: