[OpenLayers-Users] loadstart and loadend event not triggering

Dominik Mikiewicz dominikmikiewicz at o2.pl
Tue Dec 13 02:51:38 EST 2011


You can easilly extend vector layer class to make it fire events as needed.

 

From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Mohammed
Rashad
Sent: Tuesday, December 13, 2011 6:23 AM
To: openlayers-users at lists.osgeo.org
Subject: [OpenLayers-Users] loadstart and loadend event not triggering

 

All,

openlayers loadstart and loadend event not triggering

I register the event to OpenLayers.Layer.Vector

 

What I am missing??

 

Here is my code

function loadStartListener(event)

{

alert(0); //not reaching here

 

}

 

 

vectors = new OpenLayers.Layer.Vector(layername_ );

map.addLayer(vectors);

vectors.events.register("loadstart", '', loadStartListener);

 

-- 

Regards

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111213/3205f75b/attachment.html


More information about the Users mailing list