I am wrong,if you remove div which is the container of the map ,the map also removed. so i think you would best not to use remove.but to use hide/or show function about map's layers.
-- View this message in context: http://osgeo-org.1560.n6.nabble.com/Show-and-hide-maps-with-a-button-in-OpenLayers-tp5020705p5021339.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
