Hi!<br><br>The problem is that if I try to hide and remove the id after using the function createmap, the firebug writes: "b is null". It seems that the fact of removing or hiding the id works but then it's impossible to show or recreate the map and all these elements.<br>
So, what can I do to integrate all the elements which are in the map? <br>Pascal.<br><br><div class="gmail_quote">2012/12/5 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 think you only remove div ,but doesn't remove map<br>
you ought to add some sentence in createmap1 function to judge whether map<br>
has been created,if it was,show,if not create map<br>
<br>
<br>
<br>
<br>
I am OGCer V1.0 owner!<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-tp5020705p5020808.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Show-and-hide-maps-with-a-button-in-OpenLayers-tp5020705p5020808.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">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>