Hi guys, I've successfully gotten those nice snippets from http://trac.openlayers.org/wiki/Printing working, except that if I pan, it's like the image stays in the same (incorrect) place, but the layers are rendered correctly.
I zoom in somewhere and print, and everything is fine: http://geoserver.loftmyndir.is/kortasja/print/TEMP_DIR/01e6825ce67e37ec2cc19a63bc73ed50.jpg then I pan half a screen the east and print again, getting this: http://geoserver.loftmyndir.is/kortasja/print/TEMP_DIR/584d8b8811bdae386a2d01a716eb1102.jpg The view I was looking at when I printed the latter image was nothing like what I printed out. Anybody have any ideas? 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? Kind regards, Gissur On Tue, Oct 14, 2008 at 7:52 PM, Ian <[email protected]> wrote: > Correction for the sake of the list: 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: >> >> $transparent = imagecolorallocatealpha($image,60,100,145,127); >> >> Now that this is working I've noticed that for overlays there is a >> consistent SE shift of the data. Has anyone else experienced this? >> > > > Again for the sake of the list: I was setting the "gutter" option on > several layers in OL and that was causing the shift in positions. > > Ian > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
