Closed keithpower closed 7 years ago
thanks for this one too! as soon as i get finished with DC Dev Summit, i'll be able to review/merge.
Sounds great, I figured you are probably busy at the summit. Too bad I couldn't make it, your tech sessions sounds interesting.
I admit I did not fully run the tests, I am having problems with starting PhantomJS.
i have a hunch your PhantomJS problems are the same @hamhands encountered (see https://github.com/Esri/esri-leaflet/pull/896)
wow. i have no idea what happened to my mind back in february.
reviewed and merged. thanks for the patch and sorry for the radio silence!
…rent virtual grid.
esri-leaflet - v2.0.7 Leaflet 1.0.2
To reproduce:
-Zoom in to say 16
Call setWhere to filter the layer (in this case, Price > 300K)
Pan outside of the current map bounds, features that should be there based on the setWhere clause are not.
The problem, from what I can tell is that when setWhere is called it stores the current snapshot, sends out the new requests for the new snapshot based on the 'where' clause and then removes the layers in the old snapshot.
The
removeLayers
in ClusteredFeatureLayer.js that gets called removes the layers fromthis.cluster
. The problem is that subsequent calls tocreateLayers
in ClusteredFeatureLayer.js finds the layers inthis._layers
which means it does not get put into the markers array viamarkers.push(newLayer);
and never makes it back into the cluster via the call tothis.cluster.addLayers(markers);
.This change appears to fix the problem, maybe not the best fix. The down side is layers will get re-added to the cluster but it ignores layers if it already has them.
I admit I did not fully run the tests, I am having problems with starting PhantomJS. I am still quite new to the whole Node thing.