Cool. Will try that tomorrow.<br clear="all">++Tim Hinnerk Heuer++<br><br>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:18 PM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
@Eric: after looking more, I see that OpenLayers.Layer::clone puts all<br>
properties from the original on the clone:<br>
<br>
        // catch any randomly tagged-on properties<br>
        OpenLayers.Util.applyDefaults(obj, this);<br>
<br>
This is also the reason why we manually create a new grid in Layer.WMS::clone.<br>
<br>
@Tim: can you please try to apply the following patch and see if it<br>
fixes the issue?<br>
<br>
----------<br>
diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js<br>
index adf5163..b8e5bd4 100644<br>
--- a/lib/OpenLayers/Layer/Grid.js<br>
+++ b/lib/OpenLayers/Layer/Grid.js<br>
@@ -317,6 +317,8 @@ OpenLayers.Layer.Grid = OpenLayers.Class(<a href="http://OpenLayers.Layer.HT" target="_blank">OpenLayers.Layer.HT</a><br>
<div class="im">         // we do not want to copy reference to grid, so we make a new array<br>
         obj.grid = [];<br>
</div>         obj.gridResolution = null;<br>
+        // same for the backbuffer<br>
+        obj.backBuffer = null;<br>
<br>
         return obj;<br>
     },<br>
----------<br>
<br>
Thanks,<br>
Andreas.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Mar 14, 2012 at 8:28 AM, Eric Lemoine<br>
&lt;<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>&gt; wrote:<br>
&gt; On Wed, Mar 14, 2012 at 8:08 AM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt; wrote:<br>
&gt;&gt; The only occasions I could think of that could potentially make<br>
&gt;&gt; this.backBuffer both non-null and not a child of this.div is when a<br>
&gt;&gt; layer is cloned during tile loading<br>
&gt;<br>
&gt; I had thought about this too. But I&#39;m still failing to understand how<br>
&gt; cloning can lead to this state. Do you mind elaborating a bit? Thank<br>
&gt; you.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Eric Lemoine<br>
&gt;<br>
&gt; Camptocamp France SAS<br>
&gt; Savoie Technolac, BP 352<br>
&gt; 73377 Le Bourget du Lac, Cedex<br>
&gt;<br>
&gt; Tel : <a href="tel:00%2033%204%2079%2044%2044%2096" value="+33479444496">00 33 4 79 44 44 96</a><br>
&gt; Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
&gt; <a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; Dev mailing list<br>
&gt; <a href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><br>
<br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
</div></div></blockquote></div><br>