[OpenLayers-Users] Hiding map temporarily

Donald Kerr donald.kerr at dkerr.co.uk
Mon Jul 30 08:05:23 PDT 2012


Richard,

Just set the layer visability as well:

myLayer.setVisibility(false);

Or, cycle through all the layers setting visibility to false for each. Vica
versa to turn them on.

Regards,

Donald



-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Richard Jones
Sent: 30 July 2012 15:58
To: openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] Hiding map temporarily


Thanks Donald. I'm away from my development machine for a while so can't
check for sure, but won't the overlying vector layers and the controls still
be showing on top of the white base layer?

I'm trying to hide the whole of the map so that all layers and controls are
invisible and the whole browser client area will be all white. Something
like Openlayers:Map:Hide() would have been great.

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list