<div>Just to add some more info to this topic.&nbsp; I had very strange behavior when I switched the tilecaching to a linux box running with mod_python.&nbsp; I never saw the problem using CGI.&nbsp; That could have been a speed problem or something else.&nbsp; In addition I also found a slight problem when openlayers sends the url encoded string to the WMS service.&nbsp; Some handle them and some do not.
</div>
<div>&nbsp;</div>
<div>Linda<br><br></div>
<div class="gmail_quote">On Dec 28, 2007 7:33 AM, cmose &lt;<a href="mailto:cjmose@gmail.com">cjmose@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>I just wanted to see if anyone had come across any more causes of the Random<br>Tile issue. I&#39;m encountering that quite often using OL 
2.6 and TileCache<br>1.9. Numerous tiles load out of sequence - typically they are copies of<br>tiles already loaded into the map (e.g., a big land mass tile showing up in<br>the middle of the atlantic, one country&#39;s capital ending up in another
<br>country due to bad tile, etc.,). I am seeing this quite frequently -<br>unfortunately I can&#39;t pop up an example site as this is an internal app.<br><br>(I&#39;m also not seeing any spiral loading - quite typically the tiles in the
<br>middle of the screen are the last to load).<br><br>Thanks much<br><br><br><br>Christopher Schmidt wrote:<br>&gt;<br>&gt; On Thu, Oct 05, 2006 at 09:52:49AM +0100, David Herbert wrote:<br>&gt;&gt; I don&#39;t see this at all. &nbsp;What I get is a rather random loading, and
<br>&gt;&gt; often a critical inside tile is last to load. &nbsp;And sometimes as I said<br>&gt;&gt; above, that tile doesn&#39;t load at all, though the WMS has served it.<br>&gt;&gt; Presumably the requests for tiles are fired off in separate threads
<br>&gt;&gt; rather than synchronously? So differences in WMS loading and response<br>&gt;&gt; times could theoretically mess up spiral gridding? &nbsp;Doesn&#39;t explain the<br>&gt;&gt; blank tiles though.<br>&gt;<br>&gt; Although the problem is apparently intermittent and hard to reproduce
<br>&gt; (neither myself, Erik, or Schuyler have ever seen it), I do want to<br>&gt; address the issue of how the tiles are loaded.<br>&gt;<br>&gt; Loading the actual images is not performed by OpenLayers. The mechanism<br>
&gt; in which tiles are loaded is:<br>&gt;<br>&gt; &nbsp; * Create a set of &#39;img&#39; elements in a grid, and set their<br>&gt; &nbsp; &nbsp; style.display to &#39;none&#39;. An &#39;onload&#39; event is attached to the image,<br>&gt; &nbsp; &nbsp; which will unset its display style, and an onerror event is attached
<br>&gt; &nbsp; &nbsp; which unsets its display style and changes the background color.<br>&gt; &nbsp; * Start at the center of the grid and &#39;spiral&#39; outward through the<br>&gt; &nbsp; &nbsp; grid: set the img src on each image.<br>&gt;<br>
&gt; When panning:<br>&gt; &nbsp; * A column is taken from the non-visible edge of the grid, and added<br>&gt; &nbsp; &nbsp; onto the newly panned part of the grid. The style on these tiles is<br>&gt; &nbsp; &nbsp; set to display:none, and the tiles then &nbsp;have their 
img.src<br>&gt; &nbsp; &nbsp; modified.<br>&gt;<br>&gt; The second step is probably done more quickly than any of the tiles<br>&gt; load, and the loading of the tiles is then handled entirely by the<br>&gt; browser.<br>&gt;<br>&gt; So, the step to start looking is probably to add some logging in the
<br>&gt; Tile.Image class, possibly in the &#39;draw&#39; function.<br>&gt;<br>&gt; Beyond that, I&#39;ve not yet been able to reproduce this, so tracking the<br>&gt; bug down is very hard: Is it possible that your internet connection is
<br>&gt; relatively slow, and so the tile onload events get confused?<br>&gt;<br>&gt; I would expect that you would *not* have gotten this behavior under 1.0<br>&gt; or most of the pre 2.0 svn: Not until we implemented img/tile reuse.
<br>&gt; Unfortunately, this can&#39;t just be removed -- the memory ramifications<br>&gt; for not reusing the image elements are just too high.<br>&gt;<br>&gt; Hopefully, this will help you begin to investigate the problem.
<br>&gt; Unfortuantely, until I can reproduce it, I can&#39;t figure out how to help<br>&gt; debug it.<br>&gt;<br>&gt; Good luck, and please report back if you do find anything.<br>&gt;<br>&gt; Regards,<br>&gt; --<br>&gt; Christopher Schmidt
<br>&gt; Web Developer<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br>&gt;<br><font color="#888888"><br>--<br>View this message in context: <a href="http://www.nabble.com/strange-problems-with-out-of-sequence-out-of-range-map-tiles-tp6603260p14526518.html" target="_blank">
http://www.nabble.com/strange-problems-with-out-of-sequence-out-of-range-map-tiles-tp6603260p14526518.html</a><br>Sent from the OpenLayers Users mailing list archive at <a href="http://nabble.com/" target="_blank">Nabble.com
</a>.<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br></font></blockquote></div><br><br clear="all"><br>-- <br>Linda Rawson