<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. 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 <ramotswa@gmail.com><br> <b><span style="font-weight: bold;">An:</span></b> Robert Buckley <robertdbuckley@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Greg Allensworth <gregor@greeninfo.org>; "users@openlayers.org" <users@openlayers.org> <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 <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> wrote:<br>> Thanks for the reply,<br>><br>> So TileStache can serve and render the MBTiles to use with openlayers? Would<br>> you know if there are possibilities for exporting mapcontent from the<br>> openlayers mappanel?<br>><br>> This is one of the reasons i´m looking in this directory as I can´t do pdf<br>> exports with geowebcache served from geoserver.<br>><br>> Thanks,<br>><br>> Rob<br>><br>> ________________________________<br>> Von: Greg Allensworth <<a ymailto="mailto:gregor@greeninfo.org"
href="mailto:gregor@greeninfo.org">gregor@greeninfo.org</a>><br>> An: Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>> Cc: "<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>" <<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>><br>> Gesendet: 17:51 Mittwoch, 25.Januar 2012<br>> Betreff: Re: [OpenLayers-Users] Use of MBTIles with openlayers<br>><br>> On 1/25/2012 4:18 AM, Robert Buckley wrote:<br>>> Has anyone successfully used MBTiles to server<br>>> basemaps in Openlayers? Do any live example exist if yes?<br>><br>> You need server-side software to open the MBTiles file and fetch the tiles.<br>> TileStache and TileStream are two popular servers for doing this.<br>><br>> TileStache is Python and I found it
fairly easy to set up. It runs under<br>> Apache as CGI, mod_python, or WSGI. If you have an existing web server and<br>> web content, this is probably the easiest way to go.<br>><br>> TileStream is written in Node JS and takes a bit more setup. It does not run<br>> under Apache, but is its own server with its own service port and it has<br>> some behaviors regarding the hostname of incoming requests -- running it on<br>> port 80 with your other web content is not simple.<br>><br>> -- Greg Allensworth, Web GIS Developer<br>> BS A+ Network+ Security+ Linux+ Server+<br>> GreenInfo Network - Information and Mapping in the Public Interest<br>> 564 Market Street, Suite 510 San Francisco CA 94104<br>> PH: 415-979-0343 x302 FX: 415-979-0371 email: <a ymailto="mailto:gregor@greeninfo.org" href="mailto:gregor@greeninfo.org">gregor@greeninfo.org</a><br>> Web:
www.GreenInfo.org www.MapsPortal.org<br>><br>> Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org<br>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>><br><br><br> </div> </div> </div></div></body></html>