[Users] GeoExt printing OSM error

Marco Afonso mafonso333 at gmail.com
Tue Nov 1 22:35:30 CET 2011


Thanks Andreas...

It is of the form of a list, like this?

# yaml
whitelist:
    - url: tile.openstreetmap.org
    - url: anotherurl.com

Can you show me a sample?

Thanks!

2011/11/1 Andreas Hocevar <ahocevar at opengeo.org>

> Hi,
>
> you have to add tile.openstreetmap.org to the whitelist in your
> config.yaml on the server.
>
> Andreas.
> On Nov 1, 2011 11:44 AM, "Marco Afonso" <mafonso333 at gmail.com> 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
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111101/57a874ba/attachment.htm 


More information about the Users mailing list