<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; ">Thanks Tobias.</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 remember your forum post from November last year...</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; ">"...<span style="font-family: times, serif; font-size: 16px; ">So to get this working, you might be able add quite a simple loop.</span></div><span style="font-family: times, serif; font-size: 16px; ">In your printprovider.js in line 367 there is a loop to populate the</span><br style="font-family:
 times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">json object with the layers that you are wanting to get printed.</span><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">So onto line 369 add:</span><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">if (layer.url == "</span><a rel="nofollow" target="_blank" href="http://maps.zgb.de/geoserver/gwc/service/wms" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: times, serif; font-size: 16px; ">http://maps.zgb.de/geoserver/gwc/service/wms</a><span style="font-family: times, serif; font-size: 16px; ">"){</span><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">layer.url = "</span><a rel="nofollow" target="_blank"
 href="http://maps.zgb.de/geoserver/zgb/wms" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; font-family: times, serif; font-size: 16px; ">http://maps.zgb.de/geoserver/zgb/wms</a><span style="font-family: times, serif; font-size: 16px; ">")</span><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">else</span><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">{}</span><br style="font-family: times, serif; font-size: 16px; "><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px; ">(untested code, probably missing ;'s and other stuff!)...</span><br style="font-family: times, serif; font-size: 16px; "><br style="font-family: times, serif; font-size: 16px; "><span style="font-family: times, serif; font-size: 16px;
 ">Toby.</span><div><font face="times, serif"><br></font></div><div><font face="times, serif">..."</font></div><div><font face="times, serif"><br></font></div><div><font face="times, serif">This never did work for me....and I decided to enjoy christmas and start the whole thing again in 2012. Unfortunately we are already in 2012 and the niggly little jobs which I need to solve have appeared again!</font></div><div><font face="times, serif"><br></font></div><div><font face="times, serif">If you have time to help me crack this one I´d be much appreciated. &nbsp;ps..i´m located in D-31822.</font></div><div><font face="times, serif"><br></font></div><div><font face="times, serif">yours,</font></div><div><font face="times, serif"><br></font></div><div><font face="times, serif">Rob</font></div><div><font face="times, serif"><br></font><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div>  <div style="font-size: 10pt;
 font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Von:</span></b> Tobias Reinicke &lt;ramotswa@gmail.com&gt;<br> <b><span style="font-weight: bold;">An:</span></b> Robert Buckley &lt;robertdbuckley@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> Greg Allensworth &lt;gregor@greeninfo.org&gt;; "users@openlayers.org" &lt;users@openlayers.org&gt; <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 18:04 Mittwoch, 25.Januar 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [OpenLayers-Users] Use of MBTIles with openlayers<br> </font> </div> <br>I suspect you might have the same problem. We have solved this by<br>calling the appropriate WMS layer from the geoserver to do the print<br>request. The problem with any tiled base approach
 is that either you<br>have to cut down the tile parts that run outside of your export area,<br>or you have to go to the closest tile, which at lower resolutions is<br>quite a big geographical distance.<br><br>Regards,<br>Toby<br><br>On 25 January 2012 16:58, Robert Buckley &lt;<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>&gt; wrote:<br>&gt; Thanks for the reply,<br>&gt;<br>&gt; So TileStache&nbsp;can serve and render the MBTiles to use with openlayers? Would<br>&gt; you know if there are possibilities for exporting mapcontent from the<br>&gt; openlayers mappanel?<br>&gt;<br>&gt; This is one of the reasons i´m looking in this directory as I can´t do pdf<br>&gt; exports with geowebcache served from geoserver.<br>&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; Rob<br>&gt;<br>&gt; ________________________________<br>&gt; Von: Greg Allensworth &lt;<a ymailto="mailto:gregor@greeninfo.org"
 href="mailto:gregor@greeninfo.org">gregor@greeninfo.org</a>&gt;<br>&gt; An: Robert Buckley &lt;<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>&gt;<br>&gt; Cc: "<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>" &lt;<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>&gt;<br>&gt; Gesendet: 17:51 Mittwoch, 25.Januar 2012<br>&gt; Betreff: Re: [OpenLayers-Users] Use of MBTIles with openlayers<br>&gt;<br>&gt; On 1/25/2012 4:18 AM, Robert Buckley wrote:<br>&gt;&gt; Has anyone successfully used MBTiles to server<br>&gt;&gt; basemaps in Openlayers? Do any live example exist if yes?<br>&gt;<br>&gt; You need server-side software to open the MBTiles file and fetch the tiles.<br>&gt; TileStache and TileStream are two popular servers for doing this.<br>&gt;<br>&gt; TileStache is Python and I found it
 fairly easy to set up. It runs under<br>&gt; Apache as CGI, mod_python, or WSGI. If you have an existing web server and<br>&gt; web content, this is probably the easiest way to go.<br>&gt;<br>&gt; TileStream is written in Node JS and takes a bit more setup. It does not run<br>&gt; under Apache, but is its own server with its own service port and it has<br>&gt; some behaviors regarding the hostname of incoming requests -- running it on<br>&gt; port 80 with your other web content is not simple.<br>&gt;<br>&gt; -- Greg Allensworth, Web GIS Developer<br>&gt; BS&nbsp; A+&nbsp; Network+&nbsp; Security+&nbsp; Linux+&nbsp; Server+<br>&gt; GreenInfo Network - Information and Mapping in the Public Interest<br>&gt; 564 Market Street, Suite 510&nbsp; San Francisco CA 94104<br>&gt; PH: 415-979-0343 x302&nbsp; FX: 415-979-0371&nbsp; &nbsp; email: <a ymailto="mailto:gregor@greeninfo.org" href="mailto:gregor@greeninfo.org">gregor@greeninfo.org</a><br>&gt; Web:
 www.GreenInfo.org&nbsp; &nbsp; www.MapsPortal.org<br>&gt;<br>&gt; Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>&gt;<br><br><br> </div> </div>  </div></div></body></html>