[Users] GeoExt printing OSM error

Alexandre Dube adube at mapgears.com
Tue Nov 1 13:28:36 CET 2011


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 at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111101/708e7b17/attachment.htm 


More information about the Users mailing list