Why not ask your question on the new OpenStreetMap Community Forum?

I'm new to OSM can anyone tell me how can i print a OSM to pdf file, i have found a printservlet.war file in the mapfish website i have downloaded it and placed it in my tomcat folder and run the server, when i make a request to print

org.mapfish.print.InvalidJsonValueException: spec.layers[0].type has an invalid value: OSM

Then i get the above exception, is it a correct way or anyone please point me in the right direction.

asked 13 Sep '13, 07:34

Lokesh39's gravatar image

accept rate: 0%

edited 13 Sep '13, 11:45

As a quick investigation, it seems that mapfish supports osm tiles:


Your may have a version problem (older library) or a case sensitivity problem ('OSM' and not 'osm') ?

Also be careful that OSM has limited resources and a tile usage policy:


permanent link

answered 13 Sep '13, 09:35

Pieren's gravatar image

accept rate: 15%

@Pieren thanks for the reply, i have gone through layers-params but that didn't help....is there any other way excluding mapfish to print OSM using java from my tomcat server

(14 Sep '13, 07:33) Lokesh39

maybe a solution or a helpful link is hidden at http://wiki.openstreetmap.org/wiki/Frameworks ?

(16 Sep '13, 16:48) stephan75
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Sep '13, 07:34

question was seen: 11,976 times

last updated: 16 Sep '13, 16:48

powered by OSQA