I use GeoServer and OpenLayers. I use the following to print the OSM layer using MapFish Print, which is the same thing that GeoServer uses:
"{"baseURL":"http://a.tile.openstreetmap.org/\“,” +
“"opacity":1,” +
“"singleTile":false,” +
“"type":"OSM",” +
“"maxExtent":[-20037508.3392, -20037508.3392, 20037508.3392, 20037508.3392],” +
“"tileSize":[256, 256],” +
“"extension":"png",” +
""resolutions":[156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, " +
"2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, " +
“38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135]” +
“},”;
It was derived from the information at the following link:
http://www.mapfish.org/doc/print/
Hope this helps!
Jerome Wendell
From: João Rodrigues [mailto:joaorodr84@anonymised.com…84…]
Sent: Tuesday, November 18, 2014 4:52 AM
To: Pedro Henriques
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] OSM layer does not print
Hi Pedro.
It didn’t help much. I had already seen this. I don’t use GeoExt in my API. I use just pure OpenLayers. :s
Thanks anyway.
João
2014-11-18 9:39 GMT+00:00 Pedro Henriques <henriques.pedro.mf@anonymised.com.>:
this help you? http://api.geoext.org/1.1/examples/print-preview-osm.html
2014-11-18 9:21 GMT+00:00 joaorodr84 [via OSGeo.org] <[hidden email]>:
Please, I really need this. I would appreciate any help. Anyone knows how to print OSM layers using the GeoServer Printing Module? Thanks again
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/OSM-layer-does-not-print-tp5173244p5173485.html
To start a new topic under GeoServer - User, email [hidden email]
To unsubscribe from GeoServer - User, click here.
NAML
–
Cumprimentos,
Pedro Henriques
View this message in context: Re: OSM layer does not print
Sent from the GeoServer - User mailing list archive at Nabble.com.
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users