How to add Google Maps layers in QGIS 3

It is true that with the launch of QGIS 3 we are happy. Since it brings many features and upgrades such as improved editing of geometry, symbols, design, 3D layer, etc. But, a problem for impatient users that we don’t like to wait for, is the update of plugins. Although many are already in QGIS 3, but unfortunately not all of them, including OpenLayers. But you can advantageously add Google Maps layers and print them from QGIS 3.

Google Maps Layer is hosting somewhere on the Google server and sends the tab to the user who requests it. Technically it is called Tile Map Service (TMS). Therefore, we just need to find the TMS that Google uses to use the Google Maps layers. The good news, the Google Maps Layer TMS using NextGIS are listed below:

Google Maps: https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}
Google Satellite: http://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}
Google Satellite Hybrid: https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
Google Terrain: https://mt1.google.com/vt/lyrs=t&x={x}&y={y}&z={z}
Google Roads: https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}

Add Google Maps layers (Google Earth) in QGIS 3

To add the Google Maps map service in QGIS 3 simply, go to XYZ Tiles in the Browser panel. Now click on a New Connection, right-click on XYZ Tiles.

New Connection XYZ Tiles QGIS 3

Enter the name, for example: Google Satellite. Copy and paste one of the Google Maps TMS listed above into the URL. Adjust the maximum zoom level (19). Accept all changes.

XYZ Connection QGIS 3

This way, a connection to Google Satellite is established by XYZ Tile in QGIS 3. To view inside QGIS simply double-click or drag the XYZ Tile service to the layers panel.

Google Satellite on QGIS 3

In the same way you can add the rest of the TMS described at the beginning of this tutorial, for example: Google Maps.

Google Maps on QGIS 3

Source: Geodose

8 thoughts on “How to add Google Maps layers in QGIS 3”

  1. M says:

    And you can rotate this layer in the map composer! Woohoo

  2. keny says:

    whaaat… this is owesome

  3. Chris says:

    Thanks!

  4. Warren Vick says:

    I believe direct access to Google’s map tiles is contrary to their service terms and conditions.

  5. jaburn says:

    Very nice. And I like that it is more flexible wrt printing, rotation and transparency. However, Warren Vick is correct, at least for commercial use (I haven’t looked into non-commercial use). The Open Layers Plugin was ideal for us as it allowed us to input our API key which we paid a hefty amount for commercial use for. I’m wondering if there is a manner to use the above but somehow include our key so that we are compliant … any thoughts?

  6. Sandra says:

    thank you very much about this post!!

  7. Nick Cook says:

    Thanks – a great help !

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Cart

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 209 other subscribers