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.


Right click on XYZ Tiles and choose New Connection.


In the XYZ Connection window, enter a name, like Google Maps, and then enter the URL “{x}&y={y}&z={z}”.  Also set the Max Zoom Level to 19.


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


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.


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:{x}&y={y}&z={z}
Google Satellite:{x}&y={y}&z={z}
Google Satellite Hybrid:{x}&y={y}&z={z}
Google Terrain:{x}&y={y}&z={z}
Google Roads:{x}&y={y}&z={z}

Enjoy!  -mike

22 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:{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}{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)!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s