[OpenLayers-Users] Layer visibility and map displacement
Christopher Schmidt
crschmidt at metacarta.com
Fri Apr 13 10:04:37 EDT 2007
On Fri, Apr 13, 2007 at 01:58:58PM +0000, Francisco Domingues wrote:
>
> Hello!
> I want to turn visibility off (false) for some layers. I searched for the
> code but I was not able to change nothing in my viewer.
layer.setVisibility(false);
http://dev.openlayers.org/docs/OpenLayers/Layer.html#setVisibility
> I have also a problem in IE that displaces my google map box out from the
> <div>, in firefox works fine!
> Check the errors here:
> http://terrestrial.eionet.europa.eu/Fire%20Map%20Viewer/example
This is the standard IE box model problem. I recommend not giving your
map div a border, and instead putting it directly inside *another* div
with a border.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list