[OpenLayers-Users] Cannot deactivate OpenLayers.Control.PanZoomBar

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Tue Nov 25 14:50:56 EST 2008


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

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of Geoflo
Sent: Tuesday, November 25, 2008 1:16 PM
To: users at 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 at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list