[OpenLayers-Users] layer loadend event

protos kildimo at gmail.com
Mon Feb 8 06:23:18 EST 2010


Hi, 

I'm trying to implement animated zoom functionality in our openlayers based 
application. I'm doing this by : 
1. Cloning the base layer, 
2. Firing the 'load more tiles' event
3. While the tiles are loading in the baseLayer, displaying and scaling the
cloned layer in interval steps. 
4. When all the tiles are loaded I delete the cloned layer and the new tiles
in the base layer should be      displayed.

I'm trying to use the loadend event to indicate that all the new tiles are
loaded, and that cloned layer should be deleted, but this event does NOT
seem to get fired when all the new tiles are loaded - it seems to get fired
a long time before that - especially in all browsers except firefox. In
firefox loadend still gets fired early but not quite as early as other
browsers. 
The event gets fired, the cloned layer is deleted, and the base layer is
still busy downloading and rendering the new tiles when it becomes visible
...............
Do I have a wrong impression of what the loadend event does or is it just an
openlayers bug ? 

A little bit offtopic, but I had a lot of trouble with the openlayers
cloning functions as well. To me cloning should produce an identical deep
copy of whatever is being cloned. Openlayers seems to produce a shallow copy
of a layer with a reference back to the clonee layers grid - and if you
clone a grid it references back to the clonee tiles !! Seems strange to me.

Anyway - any help with the loadend thing would be very much appreciated.
Cheers,
Colm

-- 
View this message in context: http://n2.nabble.com/layer-loadend-event-tp4533615p4533615.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list