[OpenLayers-Users] How to make panzoombar invisible

Kris Geusebroek kgeusebroek at xebia.com
Thu May 28 02:38:21 EDT 2009


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:crschmidt at metacarta.com] 
Sent: Wednesday, May 27, 2009 4:54 PM
To: Kris Geusebroek
Cc: users at openlayers.org
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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list