Zoom change causes filter reset

362
5
06-14-2020 11:24 PM
Highlighted
New Contributor II

Hello,

I've been playing with  this query example Querying features | Esri Leaflet . I've noticed that, sometimes, as I change the zoom level the query seems to reset and the map starts showing all features again. Is this the expected behavior? How can I make the map show only the queried features at all zoom levels. I've tested this on several web browsers and get the same result on all of them.

Thank you,

Tags (1)
Reply
0 Kudos
5 Replies
Highlighted
New Contributor II

Has anyone been able to replicate this issue? Please see the image below. There is an active filter but the displayed data is showing other features not in the query. This happens whenever I zoom out /in a couple of times.

Reply
0 Kudos
Highlighted
MVP Regular Contributor

Henry7512 Custer

Yes I was able to see this error too

Reply
0 Kudos
Highlighted
Esri Contributor
Reply
0 Kudos
Highlighted
Esri Contributor

This was addressed in the recent esri-leaflet release. We hope this solves your issue. L.esri.FeatureLayer where clause is not always persisting · Issue #1196 · Esri/esri-leaflet · GitHub 

Reply
0 Kudos
Highlighted
New Contributor II

Thank you!