Hi Chris, I don't know where my head was yesterday but trying it this morning works like a charm.
Thanks for refreshing me ;-) Cheers Kris -----Original Message----- From: Christopher Schmidt [mailto:[email protected]] Sent: Wednesday, May 27, 2009 4:54 PM To: Kris Geusebroek Cc: [email protected] Subject: Re: [OpenLayers-Users] How to make panzoombar invisible On Wed, May 27, 2009 at 04:49:15PM +0200, Kris Geusebroek wrote: > Hi all, > > > > I want to make the panzoombar control invisible when I deactivate it so > that I can make it visible again if activated. > > I found issue 1764 stating this won't be released soon. > > > > But is there a way I can do it programmatically. > > I already tried setting the display of the control.div to none but that > doesn't work Opening controls.html, and typing in: map.controls[1].div.style.display="none"; into firebug successfully hides the panzoombar for me. -- Chris > > > > Cheers Kris > > > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
