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