[OpenLayers-Users] Toggle visibility controls

Eric Lemoine eric.c2c at gmail.com
Tue Aug 19 11:26:31 EDT 2008


You can probably loop over your controls and for each set its div's
style.display property to "none". Eric

2008/8/19, Bas Couwenberg <bascouwenberg at gmail.com>:
> Hello,
>
> I am using OpenLayers in a Swing browser in our Java application. I have a
> method that captures the maps on screen in OL and saves them to the disk.
> Now I would like to have all the panning/zooming/layer controls to be
> invisible when I capture the screen so I only have the map saved. Is it
> possible to toggle the visibility of these controls?
>
> Best regards,
>
> Bas Couwenberg
>



More information about the Users mailing list