<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 1:21 PM, Dominik Mikiewicz <span dir="ltr"><<a href="mailto:dominikmikiewicz@o2.pl">dominikmikiewicz@o2.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="PL" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You can easilly extend vector layer class to make it fire events as needed.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> </span></p></div></div></blockquote><div>how to do this?</div><div>extenting vector layer class to fire events</div>
<div><br></div><div>please tell me. I dont have much knowlege in it</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="PL" link="blue" vlink="purple"><div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Mohammed Rashad<br>
<b>Sent:</b> Tuesday, December 13, 2011 6:23 AM<br><b>To:</b> <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br><b>Subject:</b> [OpenLayers-Users] loadstart and loadend event not triggering<u></u><u></u></span></p>
<div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">All,<u></u><u></u></p><p class="MsoNormal">openlayers loadstart and loadend event not triggering<u></u><u></u></p><p class="MsoNormal">
I register the event to OpenLayers.Layer.Vector<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">What I am missing??<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
Here is my code<u></u><u></u></p><div><p class="MsoNormal">function loadStartListener(event)<u></u><u></u></p></div><div><p class="MsoNormal">{<u></u><u></u></p></div><div><p class="MsoNormal">alert(0); //not reaching here<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">}<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
vectors = new OpenLayers.Layer.Vector(layername_ );<u></u><u></u></p></div><div><p class="MsoNormal">map.addLayer(vectors);<u></u><u></u></p></div><div><p class="MsoNormal">vectors.events.register("loadstart", '', loadStartListener);<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Regards</span><u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,</font></div><div><font face="arial, helvetica, sans-serif"><div>
<img src="http://upload.wikimedia.org/wikipedia/commons/f/f9/Albert_Einstein_signature.jpg"><br></div></font></div><br>