Hi!<br><br>Yes, it's what happening in the firebug, if we remove or hide the div, it's hiding/removing all. But i don't know how to apply hide/show about map's layer only and that's my problem!<br>Pascal. <br>
<br><div class="gmail_quote">2012/12/7 OpenGSC <span dir="ltr"><<a href="mailto:945070223@qq.com" target="_blank">945070223@qq.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am wrong,if you remove div which is the container of the map ,the map also<br>
removed.<br>
so i think you would best not to use remove.but to use hide/or show function<br>
about map's layers.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Show-and-hide-maps-with-a-button-in-OpenLayers-tp5020705p5021339.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Show-and-hide-maps-with-a-button-in-OpenLayers-tp5020705p5021339.html</a><br>


<div><div>Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br>