Ticket #2504 (closed bug: fixed)
vector layers: loadstart event eventually triggered without loadend
|Reported by:||fvanderbiest||Owned by:||tschaub|
I was playing with the loadingPanel Addin Control, and I found out that a vector layer with a BBOX strategy was the culprit for not minimizing the control when I zoom in quickly so that several zoom levels are passed at once.
What happens in this case? The strategy's triggerRead method is called several times in a short while. This method first aborts the protocol, and then triggers the "loadstart" event. This means that loadstart events are triggered without their loadend counterparts. Hence the always maximized control.
To fix this, I suggest adding an "abort" event to the protocol (which does not have any event for now - cf http://trac.openlayers.org/ticket/1767). The loadingPanel control would listen to this event for vector layers and call the decreaseCounter method.