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:[email protected]] 
Sent: Tuesday, November 18, 2014 4:52 AM
To: Pedro Henriques
Cc: [email protected]
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 <[email protected]>:

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] 
<http://user/SendEmail.jtp?type=node&node=5173494&i=0> >:

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] 
<http://user/SendEmail.jtp?type=node&node=5173494&i=1>  
To unsubscribe from GeoServer - User, click here.
 
<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
 NAML 




-- 

__________________________________
Cumprimentos,
Pedro Henriques

 

  _____  

View this message in context: Re: OSM layer does not print 
<http://osgeo-org.1560.x6.nabble.com/OSM-layer-does-not-print-tp5173244p5173494.html>
 


Sent from the GeoServer - User mailing list archive 
<http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html>  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 
<http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk> 
&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to