How to display self-hosted maps from MapTiler Server in QGIS

This article demonstrates how to display self-hosted maps from MapTiler Server in QGIS. It contains the setup process and adds a few useful tips on performance improvements of the integration.

Support for vector tiles was introduced to QGIS in version 3.14 (Pi). You need QGIS 3.14 or newer to fully take advantage of vector tiles. To add maps into QGIS you need to know its StyleJSON URL or have an access to the administration of the MapTiler Server. Your MapTiler Server should be running on an open port (3650 by default).

MapTiler Server Administration

You should be able to see your maps on the MapTiler Server administration page. Read the article How to add data to MapTiler Server and this article to get even more information.

Select the map you want to add to QGIS a click on the Detail button.

 

On the detail page, find the Use vector style section and link to StyleJSON.

Open QGIS with installed MapTiler plugin. For further information about the plugin read this article.
Right-click on MapTiler plugin → Add a new map… Insert the name of the map and paste copied StyleJSON from MapTiler Server.

Your self-hosted map will be added to the list of maps under the MapTiler Plugin. Double-click on the map and your map will be added to the QGIS map canvas.

How to connect raster tiles from MapTiler Server to QGIS

The process of connecting raster tiles to QGIS via MapTiler QGIS plugin is simple. Follow these steps:

  1. Install MapTiler QGIS plugin according to this guide.
  2. Set up the authentication for the QGIS plugin according to this guide.
  3. Install MapTiler Server for Win, Linux, or Docker.
  4. In MapTiler Server, go to Maps.
  5. Click to select a map you want to connect to QGIS.
  6. Scroll down to Map service (raster tiles).
  7. Copy link “tiles.json” to the map.
  8. In QGIS, Right-click the MapTiler plugin in the left vertical menu.
  9. Select Add a new map
  10. Select the “from URL” tab
  11. Copy the link from MapTiler Server here.
  12. Double-click the map you have just selected to add it to your layer view.
  13. Continue working on your edits.

How to connect XYZ tiles from MapTiler Server to QGIS

The process of connecting XYZ tiles to QGIS via MapTiler QGIS plugin is simple. Follow these steps:

  1. In MapTiler Server, go to Maps.
  2. Click to select a map you want to connect to QGIS.
  3. Scroll down to XYZ tiles (raster tiles).
  4. Copy link to the map (https://localhost:3650/api/maps/your_style_name_/{z}/{x}/{y}.png).
  5. In QGIS, Right-click the XYZ tiles in the left vertical menu.
  6. Select New connection.
  7. Put in the name and the URL link to the map (from step 4).
  8. Double-click the map you have just selected to add it to your layer view.
  9. Continue working on your edits.

How to connect WMTS from MapTiler Server to QGIS

The process of connecting WMTS to QGIS via MapTiler QGIS plugin is simple. Follow these steps:

  1. In MapTiler Server, go to Maps.
  2. Click to select a map you want to connect to QGIS.
  3. Scroll down to WMTS.
  4. Copy link (https://localhost:3650/api/maps/your_map_style_name/WMTSCapabilities.xml).
  5. In QGIS, Right-click the WMS/WMTS in the left vertical menu.
  6. Select New connection.
  7. Put in the name and the URL link to the map (from step 4).
  8. Double-click the map you have just selected to add it to your layer view.
  9. Continue working on your edits.

Conclusion

With a combination of MapTiler Server and MapTiler Plugin in QGIS, you can easily add a self-hosted map to your QGIS project.

How to add data to MapTiler Server
How map styles work in MapTiler Server