Basically, there are at least 2 ways of loading map tiles into QGIS. The first way is using the XYZ tiles in the Browser panel. The second way is to install the QuickMapServices plugin.
In the beginning, I will focus on the first option. In the XYZ tiles, you can pick up any map you want. The problem at the very beginning of using QGIS is, that in default only OpenStreetMap is available. However, you can load as many maps as you can (Pic. 1).
By right-clicking on the XYZ Tiles section you have 3 options. Surely the most important is New Connection…, although sometimes you can use Load Connections… and set a new map by uploading ap tiles stored in the .xml files as discussed in this link and also here.
The tab below (Tab. 1) shows the list of all common map tiles connections, which can be used in QGIS.
Tab 1 list of connections
You can simply copy the link and place it in the input presented in the image below (Pic. 2).
Now the second way seems to be more beneficial, because of the range of map canvas provided. This is the QuickMapServices (QMS) plugin developed by Nextgis.com, which can be installed from the Plugins panel. Next, the installed plugin can be found in the Web section (Pic. 3).
Now, the most important thing is the spectrum of options (map services) available in this plugin. Formerly a user could count on a wide dropdown list of various base maps. Now, this list is slimmed down significantly, as we can see just a few options available (Pic. 3). Instead of this huge list of base maps, we can use the Search QMS option, where after starting to type something a user receives the list of possible map tiles to load (Pic. 4).
The primary feature which came out of this huge upgrade of the plugin is the flexibility within the choice of basemaps. The list, which is provided initially, even with the search results applied isn’t closed down. There is still an option to add your own basemap, which must be approved by the QMS community. One of the ways is selecting Add to Search from the main options (Pic. 2). This option redirects you to this link, which requires setting up your private account. Next someone, who has appropriate privileges must approve your map. Another way is adding the base map via Github. The wide possibility of adding various map tiles makes the QMS plugin significantly maintained by the community.
Let’s consider other, non-standard ways of providing map tiles to our QGIS project.
There is another way, which would allow the user to load the map tiles smoothly. It’s the Tile+ plugin. After installation, we can find it in the Plugins dropdown and use it as shown in the image (Pic. 4) or video below.
The Tile+ plugin is something new, which can be treated as the successor of the TileLayerPlugin, compatible with QGIS versions 2x.
Another method for adding the map tiles to the QGIS project is using the Python console, where the user can provide the Python code available under this link. In this event, he is getting most of the available XYZ tiles (Pic. 5).
Each provided map can be managed quickly by using some hotkeys, which make a nice shortcut for our work.
By using the mouse, you can zoom in and out. It happens so quickly. In order to have the zoom level changes under control, we can keep the Ctrl when scrolling our mouse. The full specificity of hotkeys used for browsing the main map is listed in the table below (Tab. 2).
Tab. 2 Hot keys for general QGIS map canvas
Apart from successfully providing our map canvas, we need to be aware of some styling possible. The key thing is, that our map canvas can be customized widely, containing about 50% of the options available for the raster layer.
Moreover, we can fetch the random map tile to our project or even more than 1. They are in fact quite heavy but can be useful simultaneously when needed. Every individual setting applied here goes straight to the print layout or export map as the image. Apart from the coloration important is the map transparency, which might be useful, especially for overlays i.e. with satellite imagery (Pic. 8, 9).