It sounds like we should change the defaults for the print service in GeoNode to better reflect our usage (in fact, I thought we had already done so, but I don't see a github pull request or ticket regarding the issue.) I can easily pull in a new config file if someone would care to compose it, otherwise it may take some time for me to digest the suggestions made in this thread.
-- David Winslow OpenGeo - http://opengeo.org/ On Tue, Apr 12, 2011 at 5:33 AM, Simone Dalmasso < [email protected]> wrote: > Something like this: > - !legends > maxIconWidth: 8 > classIndentation: 30 > classSpace: 4 > layerFontSize: 7 > layerSpace: 6 > > I suggest you to take a look at > > http://www.mapfish.org/doc/print/configuration.html<http://www.mapfish.org/doc/print/configuration.html> > where > you can find all possible options. > > Cheers. > > 2011/4/12 Jude Mwenda <[email protected]> > >> Quick question, how do i add a legend to the printout? >> >> >> 2011/4/12 Andreas Hocevar <[email protected]> >> >>> Hi, >>> >>> this depends on the scales you have available in config.yaml. To match >>> the map resolutions you have in the browser, replace the default scales with >>> the following: >>> >>> scales: >>> - 524288000 >>> - 262144000 >>> - 131072000 >>> - 65536000 >>> - 32768000 >>> - 16384000 >>> - 8192000 >>> - 4096000 >>> - 2048000 >>> - 1024000 >>> - 512000 >>> - 256000 >>> - 128000 >>> - 64000 >>> - 32000 >>> - 16000 >>> - 8000 >>> - 4000 >>> - 2000 >>> - 1000 >>> >>> Regards, >>> Andreas. >>> >>> On Apr 12, 2011, at 11:00 , Jude Mwenda wrote: >>> >>> > Hi, >>> > That worked. Thanks. Quick question. On clicking print, the map fails >>> to fully fit on the page/view. Any properties to change? Including the >>> template of the pdf? The map area fails to fit on the viewer? Any pointers >>> on how to solve this? >>> > >>> > 2011/4/12 Simone Dalmasso <[email protected]> >>> > Hi, >>> > I had the same issue and I solved by editing the >>> geoserver-data/printing/config.yaml file and adding the !dnsMatch rule like >>> follows: >>> > >>> > hosts: >>> > - !localMatch >>> > dummy: true >>> > - !dnsMatch >>> > host: tile.openstreetmap.org >>> > >>> > Hope this helps. >>> > >>> > Simone >>> > >>> > 2011/4/12 Jude Mwenda <[email protected]> >>> > Hi, >>> > I am having issues printing maps with OSM as the base layer. I get the >>> error depicted below. On searching this issue it seems there is something i >>> am doing wrong. Any pointers on how to solve this? Thanks >>> > >>> > org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has >>> an invalid value: >>> > >>> > >>> > >>> > >>> > >>> > -- >>> > Simone Dalmasso, Ing. >>> > ITHACA >>> > Information Technology for Humanitarian Assistance, Cooperation and >>> Action >>> > www.ithacaweb.org >>> > Via Pier Carlo Boggio 61 - 10138 Torino >>> > Tel: +39.011.1975.1860 >>> > >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >>> >>> >> > > > -- > Simone Dalmasso, Ing. > ITHACA > Information Technology for Humanitarian Assistance, Cooperation and Action > www.ithacaweb.org > Via Pier Carlo Boggio 61 - 10138 Torino > Tel: +39.011.1975.1860 >
