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"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></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>
<<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>> wrote:<br>
> On Wed, Mar 14, 2012 at 8:08 AM, Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>> wrote:<br>
>> The only occasions I could think of that could potentially make<br>
>> this.backBuffer both non-null and not a child of this.div is when a<br>
>> layer is cloned during tile loading<br>
><br>
> I had thought about this too. But I'm still failing to understand how<br>
> cloning can lead to this state. Do you mind elaborating a bit? Thank<br>
> you.<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><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Dev mailing list<br>
> <a href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br>
> <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>