[GIS] Mapbox WMTS layer in QGIS poor print quality

mapboxprint-composerqgis

I've added a Mapbox WMTS layer to my QGIS project.

However when I use the print composer and export my map the result is blurry / not sharp. The image in the print composer itself is sharp, it is only after export that the problems occur. Any idea how to solve this? I've also tried exporting as PDF but the result is the same low quality.

I also tried increasing DPI and total number of pixels but the results are disappointing.

enter image description here

Best Answer

The Mapbox WMTS endpoint only supports @1x resolution, but in QGIS 3 you can add an XYZ Tiles source and use the @2x resolution Mapbox tiles. Something like

https://api.mapbox.com/styles/v1/USERNAME/STYLE_ID/tiles/256/{z}/{x}/{y}@2x?access_token=ACCESS_TOKEN

If you're happy for your icon/text to become smaller you can get even more resolution by requesting 512 @2x tiles instead of 256 tiles

https://api.mapbox.com/styles/v1/USERNAME/STYLE_ID/tiles/512/{z}/{x}/{y}@2x?access_token=ACCESS_TOKEN