You&#39;re a champ Andreas! This does fix the problem, well done. Much better solution than my check/try/catch!<div>So, in the end it was the cloning code huh? :-P</div><div><br></div><div>The patch did not work for me though. Maybe because I was using a slightly different version from yours, but I did the patch manually, since it was only really one line.</div>
<div><br></div><div>Would be happy to commit that into upstream. You should put it in the master branch.</div><div><br></div><div>Tim</div><div><br></div><div>Twitter: @timhheuer<br><div>Blog: <a href="http://www.thheuer.com/" target="_blank">http://www.thheuer.com</a></div>
<br>
<br><br><div class="gmail_quote">On Thu, Mar 15, 2012 at 8:55 PM, Eric Lemoine <span dir="ltr">&lt;<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Mar 15, 2012 at 8:18 AM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt; wrote:<br>
&gt; Hey,<br>
&gt;<br>
&gt; @Eric: after looking more, I see that OpenLayers.Layer::clone puts all<br>
&gt; properties from the original on the clone:<br>
&gt;<br>
&gt;        // catch any randomly tagged-on properties<br>
&gt;        OpenLayers.Util.applyDefaults(obj, this);<br>
&gt;<br>
&gt; This is also the reason why we manually create a new grid in Layer.WMS::clone.<br>
&gt;<br>
&gt; @Tim: can you please try to apply the following patch and see if it<br>
&gt; fixes the issue?<br>
&gt;<br>
&gt; ----------<br>
&gt; diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js<br>
&gt; index adf5163..b8e5bd4 100644<br>
&gt; --- a/lib/OpenLayers/Layer/Grid.js<br>
&gt; +++ b/lib/OpenLayers/Layer/Grid.js<br>
&gt; @@ -317,6 +317,8 @@ OpenLayers.Layer.Grid = OpenLayers.Class(<a href="http://OpenLayers.Layer.HT" target="_blank">OpenLayers.Layer.HT</a><br>
&gt;         // we do not want to copy reference to grid, so we make a new array<br>
&gt;         obj.grid = [];<br>
&gt;         obj.gridResolution = null;<br>
&gt; +        // same for the backbuffer<br>
&gt; +        obj.backBuffer = null;<br>
&gt;<br>
&gt;         return obj;<br>
&gt;     },<br>
&gt; ----------<br>
<br>
<br>
<br>
</div>Good spotting Andreas! I&#39;m looking forward to Tim&#39;s feedback.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : <a href="tel:00%2033%204%2079%2044%2044%2096" value="+33479444496">00 33 4 79 44 44 96</a><br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</div></div></blockquote></div><br></div>