Hi, I use PrintProvider to print map with OpenStreetMap as base layer. And I get error:
Error while generating PDF: DocumentException: org.mapfish.print.InvalidJsonValueException: spec.layers[2].baseURL has an invalid value: http://tile.openstreetmap.org/(spec.layers[2].baseURL has an invalid value: http://tile.openstreetmap.org/) ....................................................... This is my data: {"units":"m","srs":"EPSG:900913","layout":"A4 portrait","dpi":75,"mapTitle":"All In Carto 4.0","layers":[{"baseURL":" http://localhost:8080/geoserver/wms ","opacity":1,"singleTile":false,"type":"WMS","layers":["durbuy:pa_83012"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"FORMAT_OPTIONS":"dpi:300"}},{"baseURL":" http://localhost:8080/geoserver/wms ","opacity":1,"singleTile":false,"type":"WMS","layers":["durbuy:ba_83012"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"FORMAT_OPTIONS":"dpi:300"}},{"baseURL":" http://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.0339,78271.51695,39135.758475,19567.8792375,9783.93961875,4891.969809375,2445.9849046875,1222.99245234375,611.496226171875,305.7481130859375,152.87405654296876,76.43702827148438,38.21851413574219,19.109257067871095,9.554628533935547,4.777314266967774,2.388657133483887,1.1943285667419434,0.5971642833709717]}],"pages":[{"center":[610975.35710802,6506458.6443756],"scale":50000,"rotation":0,"mapTitle":"All In Carto 4.0","comment":""}],"legends":[{"name":"Batiments","classes":[{"name":"","icons":[" http://localhost:8080/geoserver/wms?TRANSPARENT=true&FORMAT_OPTIONS=dpi%3A300&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=durbuy%3Aba_83012&SCALE=68247.38352453541&FORMAT=image%2Fpng&LEGEND_OPTIONS=forceLabels%3Aon "]}]},{"name":"Parcelles","classes":[{"name":"","icons":[" http://localhost:8080/geoserver/wms?TRANSPARENT=true&FORMAT_OPTIONS=dpi%3A300&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=durbuy%3Apa_83012&SCALE=68247.38352453541&FORMAT=image%2Fpng&LEGEND_OPTIONS=forceLabels%3Aon "]}]}]} This error from PrintProvider or mapfish print module? Thanks. -- Nguyễn Đình Toán
_______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
