Add Google Maps to QGIS 3

If you use QGIS version 3, you have the ability to add Google Maps layers to your map.  The Google Maps layers are really Tile Map Services (TMS).  The following is an example showing how to add Google Maps to QGIS.

Once you open a project in QGIS, in the Browser window to the left, scroll down to XYZ Tiles.

qgis-1

Right click on XYZ Tiles and choose New Connection.

qgis-2

In the XYZ Connection window, enter a name, like Google Maps, and then enter the URL “https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}”.  Also set the Max Zoom Level to 19.

qgis-3

Click the OK button, and Google Maps is added to your XYZ Tiles list.

qgis-4

Now double click on Google Maps or drag & drop it and you will see it in your map area!  Here I zoomed into the LA area.

qgis-5

If you prefer the satellite image or other images, here is a list of Google Maps layers that you can add to QGIS:

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=p&x={x}&y={y}&z={z}
Google Roads: https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}

Enjoy!  -mike

26 thoughts on “Add Google Maps to QGIS 3

  1. How can you get QGIS to keep the same tile resolution/zoom so that when a map is exported as a JPG the labeling and fonts don’t go down to microscopic size?

  2. I think I found something to make it work, but wish there was a better way. I set the Zoom minimum and maximum both to 11 in the XYZ connection options and I can now read the labeling on my exported JPG of a 1:250,000 scale 6.5″x6.5″ map.

    It would be nice to know why the map appears one way in the Layout and looks different once saved. . . .

  3. How can I know which year the Google satellite layer is built.
    Currently I am making map that needs to use the google satellite as the base map, but I would want to know is the link provided above the most recent updated?
    Appreciated for your answer !!!

  4. Thank you for your answer, But I meant the year of the
    Google Satellite: http://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}
    which is provided above. I have added the connection to make my QGIS have this layer as a base. Since I need to list year of my data used in the map, I could not find information of the year.
    I do have GOOGLE EARTH app on my desktop. Are they the same thing?

  5. I used the exact URL given here, and the Google Maps layer I got was in Chinese. How to set it so its in English?

    • Oops! You can skip the previous reply if it gets posted. I pasted the Google Satellite URL and then saw you were asking about the Maps one. I just checked and the URL I use is the same as the original.

      Maybe it has something to do with where the Google server thinks you are. (???)

  6. Hi do you have a recent URL for Google Satellite? the one you have above does not seem to work?! thanks Justine

  7. Hi there, does anybody know, how to improve the resolution of the wms in qgis? so that it is getting near to the resolution which is provided at the respective google websites?

  8. Hi there, Google map tile(s) won’t fill in Openlayer
    const baseMap = new Tile({ source: new OSM({ url: ‘https://mt{0-3}.google.com/vt/hl=en-US&lyrs=y&x={x}&y={y}&z={z}’, maxZoom: baseMapsData.maxzoom, }), });

  9. The google map does not match open street map, it has ablout 1km distance from each other. How does it happen? Their coordinate systems are the same (Pseudo-Mercator)!

  10. Is it possible to load older Google Images like the ones available on the Google Earth?
    It would be possible to go back in time and show not only the latest image.
    Can it be done?
    Thanks

Leave a comment