<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm not sure what exactly you are trying to do, but I can assure you
that you are doing wrong.<span style="color:#1F497D" lang="EN-US"><o:p></o:p></span>
<blockquote
cite="mid:001d01cccedd$2a12ef40$7e38cdc0$@jean-charles@valabre.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
lang="EN-US">map.destroy();</span></p>
</div>
</blockquote>
NO! Never destroy the map unless you want it really and truly gone
for good.<br>
<blockquote
cite="mid:001d01cccedd$2a12ef40$7e38cdc0$@jean-charles@valabre.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">var
jsonFormat = new OpenLayers.Format.JSON();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
lang="EN-US">var mapOptions =
jsonFormat.read('{"allOverlays": true}');</span></p>
</div>
</blockquote>
OL.Format.JSON is for reading JSON "encoded" vector features into a
layer. You do NOT need this to simply set options. mapOptions =
{allOverlays:true}; instead of the 2 lines and quoted strings you
have used. However, again, you should only be setting that once and
creating the map once, NOT attempting to fully destroy the map and
recreate it everytime you want to read or refresh a data source.<br>
<blockquote
cite="mid:001d01cccedd$2a12ef40$7e38cdc0$@jean-charles@valabre.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">map
= wmcFormat.read(context, {map: mapOptions}); </span><span
lang="EN-US"><br>
</span></p>
</div>
</blockquote>
Instead of this you should use:<br>
map.setOptions(wmcFormat.read(context,{map:mapOptions});<br>
<blockquote
cite="mid:001d01cccedd$2a12ef40$7e38cdc0$@jean-charles@valabre.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><span
style="color:#1F497D"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">The FireFox error is : layers is null in
MapPanel.js (ligne 301)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">And do I have to re-build all the GeoExt
widgets (ScaleStore, LegendPanel, OverviewMap…) which are
bind to my map ??<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><br>
Thanks for the hel<span style="color:#1F497D">p</span><br>
<br>
<span style="color:#1F497D">Arno</span><o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="" avgcert""="" color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 2012.0.1901 / Virus Database: 2109/4732 - Release Date:
01/09/12</p>
</blockquote>
</body>
</html>