10.4. QuickMapServices

Note

Qt6 compatible

With this plugin you can quickly add a basemap to you QGIS project. Raster basemap is often the first layer to be added to a project. You can add OpenStreetMap layer, UTM zones borders etc.

Basemap can be in the form of a Web service: TMS, WMS, WMTS, ESRI ArcGIS Service, or symply XYZ tiles.

You can search for any service added to QMS database by using the search bar Pic. 10.8.. Most used basemaps are gathered in he QuickMapServices dropdown menu.

Full catalog of QuickMapServices is available on https://qms.nextgis.com/. You can add your own basemaps to the catalog.

10.4.1. How to add basemaps and other services to QGIS

After the plugin is installed its buttons appear in the Web Toolbar (you can move the buttons to another panel in the Settings). Also QuickMapServices submenu will be added to the Web menu.

Activate the button_QMS_search QMS search panel. Enter the name of the service you want to find or some key words into the search bar (try “Openstreetmap”, “Mapnik” or “UTM”), then double-click the service to add it to the map or click Add.

Click Filter by extent to only display the layers that contain the area visible on the map in QGIS. Not all the layers in QMS database have specified extent, but you can add it yourself. Not all the layers in QMS database have specified extent, but you can add it yourself.

Basemap is added to project as a raster layer (see Pic. 10.9.)

../../_images/qms_added_example_en.png

Pic. 10.9. Basemap and a layer of UTM zones

You can check out how the plugin works in our video:

Watch on youtube.

Another way to add a basemap is to pick one of the services from the plugin menu. Click modules_Qms-button on the Web toolbar or go to Web ‣ QuickMapServices.

Click on a service to add it to the project.

../../_images/qms_add_from_menu_en.png

Pic. 10.10. Adding service from the plugin menu

You can modify the contents of this menu in the plugin settings.

10.4.2. Settings

To open the plugin settings, go to Web ‣ QuickMapServices ‣ Settings or open Settings from the plugin menu.

../../_images/qms_settings_open_en.png

10.4.2.1. General settings

On this tab you can activate one of the options:

  1. Automatically reproject to EPSG: 3857 Pseudo Mercator;

  2. Enable plugin debug messages. If this option is enabled, the messages are shown in the QGIS message center. By default they are displayed in a pop-up window.

../../_images/qms_settings_main_en.png

Pic. 10.11. General settings

10.4.2.2. Add/Edit/Remove

On the second tab you can add services to the plugin menu.

You can create a new service in one of the existing groups or add a new group.

To create a new group, click on the green plus in the top half of the tab. Set an ID and an alias that will be displayed in the menu.

../../_images/qms_new_group_en.png

Pic. 10.12. Creating a new service group

To create a new service, click on the green plus in the bottom half of the tab.

../../_images/qms_new_service_en.png

Pic. 10.13. Creating service in the group

  • Set an ID and an alias that will be displayed in the menu.

  • Pick the group in which to include the service.

  • Select the service type: WMS, TMS, GDAL, WFS, GeoJSON.

On the next tab you can add lisencing information.

Note

If you plan to make a derivative work based on a basemap added from the Internet, please read the terms of use for that basemap so as not to violate copyright laws. If you use OSM Mapnik, all you need to do is add «© OpenStreetMap contributors (osm.org)». Other basemaps and satellite images may have more restrictions.

On the third tab:

  • Add service URL;

  • Enter the numeric code of the CRS (e.g. 3857 for EPSG:3857 (WGS 84 / Pseudo-Mercator).

../../_images/qms_new_service_url_en.png

Pic. 10.14. TMS service parameters

Click OK to complete the service creation.

../../_images/qms_new_service_result_en.png

Pic. 10.15. New service in the QMS menu

If you want to share the service with other users, you can add it to the public QuickMapServices catalog.

Click modules_Qms-button on the Web toolbar or go to Web ‣ QuickMapServices and select Add to Search.

../../_images/qms_add_to_catalog_en.png

Pic. 10.16. Adding service to the public catalog

It opens QuickMapService page in your browser, allowing you to create a new publicly available service that other users would access via QMS search.

More on adding a new service to QMS search.

10.4.2.3. Visibility

On this tab you can select which groups and services to display in the plugin dropdown menu.

../../_images/qms_visibility_en.png

Pic. 10.17. Visibility of groups and services