<span class="Apple-style-span" style="border-collapse: collapse; ">Hi guys,<div><br></div><div>I&#39;ve successfully gotten those nice snippets from&nbsp;<a href="http://trac.openlayers.org/wiki/Printing" target="_blank" style="color: rgb(0, 0, 204); ">http://trac.openlayers.org/wiki/Printing</a>&nbsp;working, except that if I pan, it&#39;s like the image stays in the same (incorrect) place, but the layers are rendered correctly.</div>
<div><br></div><div><div>I zoom in somewhere and print, and everything is fine:&nbsp;<a href="http://geoserver.loftmyndir.is/kortasja/print/TEMP_DIR/01e6825ce67e37ec2cc19a63bc73ed50.jpg" target="_blank" style="color: rgb(0, 0, 204); ">http://geoserver.loftmyndir.is/kortasja/print/TEMP_DIR/01e6825ce67e37ec2cc19a63bc73ed50.jpg</a>&nbsp;</div>
<div><br></div><div>then I pan half a screen the east and print again, getting this:&nbsp;<a href="http://geoserver.loftmyndir.is/kortasja/print/TEMP_DIR/584d8b8811bdae386a2d01a716eb1102.jpg" target="_blank" style="color: rgb(0, 0, 204); ">http://geoserver.loftmyndir.is/kortasja/print/TEMP_DIR/584d8b8811bdae386a2d01a716eb1102.jpg</a>&nbsp;</div>
<div><br></div><div>The view I was looking at when I printed the latter image was nothing like what I printed out.</div><div><br></div><div>Anybody have any ideas?</div><div><br></div><div>ps. I also ran into some empty tiles problems in the printing, but I implemented a simple retryx3 on fail mechanism that worked wonders, should I add that to the wiki?</div>
<div><br></div><div>Kind regards,</div><div>Gissur</div></div></span><br><div class="gmail_quote">On Tue, Oct 14, 2008 at 7:52 PM, Ian <span dir="ltr">&lt;<a href="mailto:iansgis@gmail.com">iansgis@gmail.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 dir="ltr"><div class="Ih2E3d"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div dir="ltr">Correction for the sake of the list:&nbsp; the tiles were being layered correctly, however MapServer background color settings to mimic the ocean made it appear otherwise (eg. IMAGECOLOR 60 100 145). The solution was to set this background color to transparent:<br>


<br>$transparent = imagecolorallocatealpha($image,60,100,145,127);<br><br>Now that this is working I&#39;ve noticed that for overlays there is a consistent SE shift of the data. Has anyone else experienced this? <br></div>


</blockquote></div><br><br></div>Again for the sake of the list: I was setting the &quot;gutter&quot; option on several layers in OL and that was causing the shift in positions.<br><br>Ian<br></div>
<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>
<br></blockquote></div><br>