pzb.activate();
pzb.deactivate();

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Geoflo
Sent: Tuesday, November 25, 2008 1:16 PM
To: users@openlayers.org
Subject: Re: [OpenLayers-Users] Cannot deactivate
OpenLayers.Control.PanZoomBar


Thanks for your help Bart.

I tried the following:

var pzb = new OpenLayers.Control.PanZoomBar(); map.addControl(pzb); ...
// deactivate PanZoomBar:
map.removeControl(pzb);
...
// activate PanZoomBar again
map.addControl(pzb);
...

The problem is, that when I add the panzoombar the second time, it will
not be displayed on the map.
But why?

--
View this message in context:
http://n2.nabble.com/Cannot-deactivate-OpenLayers.Control.PanZoomBar-tp1
381757p1577529.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to