[OpenLayers-Dev] Does the Image Layer have registered events?

Darko Radiceski radiceski at gmail.com
Tue Aug 19 00:35:05 EDT 2008


Dear all,

Does the image layer support the events?

I have a the following:


function registerEvents()

{

graphic.events.register("loadstart", graphic, onUpdatingMap);

graphic.events.register("loadend", graphic, onUpdatedMap);

}

function onUpdatingMap()

{

alert("updating");

var updateProgressDiv = document.getElementById('updateProgressDivMap');

updateProgressDiv.style.display = '';

 }

function onUpdatedMap()

{

// get the update progress div

var updateProgressDiv = document.getElementById('updateProgressDivMap');

// make it invisible

updateProgressDiv.style.display = 'none';

}
But this does not seem to work for me...

The Functions dont get called on the onloadstart event.

Any advice?

Cheers
Dan


-- 
Radiceski Darko
University of Wollongong
Australia
SIFE - UOW Chapter - Alumni
CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
(School of Information Technology and Computer Science,University of
Wollongong)
Univeristy of Wollongong - Alumni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080819/08897098/attachment.html


More information about the Dev mailing list