<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hi,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I am trying to sort out a satisfactory printing mechanism for slippy maps in openlayers.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">My set up is Ubuntu 10.04 / Tomcat6 / Geoserver2.1.2 / Openlayers / GeoExt</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">My Baselayers are either TMS WTMS or GeoWebCache.....these cannot be printed with the mapfish print module ( only
wms)</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">So...I am looking at the "<span style="font-family: Arial, Verdana, 'Bitstream Vera Sans', Helvetica, sans-serif; ">Tile stitching using a server-side program" - script found here</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span style="font-family: Arial, Verdana, 'Bitstream Vera Sans', Helvetica, sans-serif; "><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><a href="http://trac.osgeo.org/openlayers/wiki/Printing">http://trac.osgeo.org/openlayers/wiki/Printing</a> <br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">Has anyone managed to get working? I am having a problem
understand the Javascript..</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;"><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;">My alert below is always empty...I tried putting in the name of the layer, but this also returns null!</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;"><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;">for (layername in map.layers) {</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;"> // if the layer isn't visible at this range, or is turned off, skip it</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;"> var layer = map.layers[layername];</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size:
13px;">alert(layer);</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;"> if (!layer.getVisibility()) continue;</span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px;"> if (!layer.calculateInRange()) continue;</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">If anyone has done something similar, please report!</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">yours,</div><div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Rob</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div></div></body></html>