Closed cjh1 closed 10 years ago
After a little investigating I can see what the issue is here. Basically and zoom or resize events end up causing updateAndDraw(...) to be called on the map which in term causes update(...) to be called on the featureLayer. The featureLayer requests the data from data source and rebuilds its features. This new set of features doesn't respect the visibility of the layer. So issue can be resolved by setting the correct visibility on these new features. However I think there is remove optimization here:
It looks like the legend has the same issue, the issue can be solved in the same way. However, the questions about optimization apply equally.
Changes pushed in 200-fix-toggle-visibility
Thats a geojs branch
@aashish24 can you take a look at this branch
Yes, I should have some time this afternoon. thanks
Approved
Here are the step to recreate: