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:
- processing toolbox: generate XYZ tiles (MBTiles)
- I get this file: OUTPUT_FILE.mbtiles
- created a new XYZ connection
- the mbtiles file uploaded to
https://………./qgis2web/OUTPUT_FILE.mbtiles
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.