Marco,
Try adding 'tile.openstreetmap.org' in your list of allowed hosts in
your config.yaml.
Alexandre
On 11-11-01 06:44 AM, Marco Afonso wrote:
Hello all,
I'm getting an error when trying to print my map having OSM as base layer:
Error while generating PDF:
DocumentException: org.mapfish.print.InvalidJsonValueException:
spec.layers[0].baseURL has an invalid value:http://tile.openstreetmap.org/
(spec.layers[0].baseURL has an invalid value:http://tile.openstreetmap.org/)
at
org.mapfish.print.map.readers.HTTPMapReader.checkSecurity(HTTPMapReader.java:64)
at
org.mapfish.print.map.readers.HTTPMapReader.<init>(HTTPMapReader.java:55)
at
org.mapfish.print.map.readers.TileableMapReader.<init>(TileableMapReader.java:40)
at
org.mapfish.print.map.readers.OsmMapReader.<init>(OsmMapReader.java:41)
at
org.mapfish.print.map.readers.OsmMapReader.create(OsmMapReader.java:78)
at org.mapfish.print.map.readers.MapReader.create(MapReader.java:56)
at
org.mapfish.print.map.MapChunkDrawer.renderImpl(MapChunkDrawer.java:111)
...
The code is the same as in GeoExt Printing OSM example...
I'm using extjs 3.4, openlayers 2.11, geoserver 2.1.1 and openlayers 2.11
Just an add... my code works with Metacarta WMS basic as in geoserver
2.11 printing demo.
Thank you for your attention.
Marco
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Alexandre Dubé
Mapgears
www.mapgears.com
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users