[Users] GeoExt printing OSM error
Marco Afonso
mafonso333 at gmail.com
Tue Nov 1 11:44:24 CET 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111101/d481f3d6/attachment.htm
More information about the Users
mailing list