Ticket #1670 (closed bug: fixed)
maxZIndex becomes NULL when the last feature is removed
|Reported by:||pvalsecc||Owned by:|
If you insert features in a Vector layer, remove all of them and re-insert some, you'll get some bad behaviors and memory leaks.
Everything happens in the OpenLayers.ElementsIndexer class. After you remove the last feature, all the features inserted without z-order have a null z-order and are never removed from the indices and order structures. And the sorting of the features is broken.
See the patch in attachment.