QGIS – Generate Own XYZ Tile (MBTiles) URL

leafletmbtilesqgisqgis2webxyz-tiles

I want to create my own xyz tile for an own basemap on my webspace.
I want to use the own basemap for a qgis2web leaflet map.

This I have done:

  1. processing toolbox: generate XYZ tiles (MBTiles)
  2. I get this file: OUTPUT_FILE.mbtiles
  3. created a new XYZ connection
  4. the mbtiles file uploaded to
    https://………./qgis2web/OUTPUT_FILE.mbtiles
    enter image description here

Question:
Which URL for the XYZ connection is the right one?

QGIS 3.10.5 / Windows 10

Best Answer

Building on @IvanSanchez's comment, to get this to work in qgis2web, you'll have to get the contents out of the MBTiles file. Unzip the MBTiles into a directory on your website, retaining the XYZ folder structure. You can then add that location into QGIS as an XYZ layer. qgis2web will then export it.

Related Question