[OpenLayers-Users] Hiding map temporarily

Richard Jones richardjnz at yahoo.com
Sun Jul 29 05:35:27 PDT 2012


I am driving the web browser from an external program, and I'm trying to figure out how to "hide" the map temporarily - that is, clear the browser pane to white until I want to display the map again.

I have experimented with using map.render() to switch between two divs one of which is "display : none" but this causes all kinds of weird behaviour with the marker, and loses styles in the vector layers, so I guess this is not the way to go.

I can't find any OpenLayer.Map methods to make the whole map hidden/invisible.

Can anyone suggest how I can do this?



More information about the Users mailing list