-
Notifications
You must be signed in to change notification settings - Fork 799
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
setWhere callback is not called #875
Comments
i can't reproduce the error you describe: http://jsbin.com/yejeki/edit?html,output that said, we definitely could do a better job of cancelling pending requests and clearing associated graphics to ensure that the map immediately reflects the latest filter in situations when the layer is in the process of fetching features when |
I guess the issue is more general.
|
@jgravois seems that the issue with the callback not fired is related to the use of esri leaflet renderers. |
Since the initial issue seems more related to esri-leaflet-renders I've opened an issue there Esri/esri-leaflet-renderers#132. An other issue raised is related to the fact that not all features are removed from the layer after setWhere is called (as shown by the image posted in #875 (comment)). See also in http://jsbin.com/yejeki/edit?html,output, the correct result should be to hide all features. |
I've been able to see this happening, too, at esri-leaflet v2.2.3, described more or less the by the title of #780. One way to repro (and thanks for the idea, @gavinr) is to slow down network traffic speeds with the browser dev tools.
|
I think this had to do with network request race conditions prior to v2.4.0. Let's be sure to look at this issue while investigating #1196. |
Changing the where condition on a newly created layer doesn't let the callback to be executed.
The callback is correctly executed if the setWhere is executed after a few seconds.
The text was updated successfully, but these errors were encountered: