Printing OpenStreetMap Maps
Enlarging a map image prepared for screen display can make it blurry. Requesting a larger image without adjusting the rendering can leave labels too small and lines too thin in print.
Our OpenStreetMap WMS renders maps for the intended print resolution so labels and lines remain legible. Depending on your application, you can either pass the print resolution in the WMS request or use our optimized print service.
Some applications allow you to include the desired print resolution directly in the WMS request. The software automatically transmits the requested resolution to the map service, and our service returns a map tailored to that resolution.
With this method, you can use our map service as usual without changing any additional settings. QGIS supports this.
Other applications do not transmit the desired resolution to the map service. Instead, they simply increase the size of the requested map without changing the resolution. This means the map service cannot determine the user's intended print resolution.
For such cases, you need to use an optimized print service. This service can be added to your application as a standard WMS. The print service renders maps directly at a higher resolution. On your screen, labels and lines may initially appear oversized, but the printed output will match the desired quality. This behavior is illustrated in the screenshots below.
To use the optimized print service, add both the standard WMS and the print service to your application. Prepare your map with the standard WMS, and just before printing, switch to the print service.
To use the optimized print service, replace <your-api-key> in the following URL with your private API key:
https://maps.omniscale.net/v2/<your-api-key>/style.default/dpi.300/map?
You can request different resolutions by replacing 300 in the URL with the desired DPI value.
This approach works with any WMS client, without special support for passing DPI settings. Examples of compatible GIS and CAD applications include:
When printing at 300 DPI, all labels and lines will appear at the same size as in the normal view. After printing, you can change back to the normal map service.