How to add XYZ Tiles #QGIS

1. Load Connections

A collection of several basemaps in an xml file.

https://github.com/Mariosmsk/qgis-basemaps

2. A nice script to add basemaps via python console (by Klas Karlsson):
https://github.com/klakar/QGIS_resources/blob/master/collections/Geosupportsystem/python/qgis_basemaps.py

3. Simple add

Note:

To remove all the connections at once. You can use the following code via python console:

settings = QgsSettings()
settings.remove('qgis/connections-xyz')
iface.reloadConnections()

Leave a comment