-
Notifications
You must be signed in to change notification settings - Fork 798
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
Fix for min and max zoom handling #660
Conversation
@rowanwins sorry it has taken me so long to look at this. Taking a look at the code I the the problem is in this line https://github.com/Esri/esri-leaflet/blob/master/src/Layers/FeatureLayer/FeatureLayer.js#L164. Basically this works around a case where FeatureGrid fires a |
@rowanwins ok I have some more insight on this. Right now all the
Given these complications I think that Lets just assume
Removing features is easy I think you can just call Adding the features back is a little harder. For every cell in
This approach is more complicated but it avoids |
@rowanwins if you want to attempt the above by all means do so. Otherwise I can get around to tacking this soon. |
Gday @patrickarlt It certainly helps knowing the internals of how FeatureLayer vs FeatureManager vs FeatureGrid etc all interact, I was just kind of guessing a bit! I'm happy to have a play sometime over the next few days to see if I can implement your proposed solution, if I dont make any progress I'll let you know. Thanks for the pointers. Cheers |
@rowanwins looks like @jgravois beat you to it with #695. I'm going to close this in favor of his approach. |
Hi guys,
I've had a crack at fixing issue #643 , I'm not sure its the most optimal way and happy to take feedback but it seems to be working ok on the test case provided.
Cheers
Rowan