Action zoom in a button

المشرف العام

Administrator
طاقم الإدارة
In my code, I have a button that displays information in my gridpanel and it add a vectorlayer in it. I want to add zoom on those polygon, but I did not succeed

My code:

testlayer.events.register( testlayer, function(){ map.zoomToExtent(testlayer.getDataExtent())});Note this code functions when I add the vectorlayer only, but when I add the action of displays information in my gridpanel it is not working.

any help is apprecited



أكثر...
 
أعلى