How to add Google Maps services to QGIS
To add Google Satellite imagery to QGIS, you can use the XYZ Tiles service, which allows you to add raster data from various online sources.
Step-by-step guide to adding Google Satellite imagery to QGIS
- Open QGIS and make sure you have the Browser panel enabled. If it is not visible, you can enable it from the menu by selecting View > Panels > Browser Panel.
- Right-click on XYZ Tiles in the Browser panel and select New Connection.
- In the New XYZ Connection dialog box that appears, enter a name and the URL for Google Satellite. Name it something like Google Satellite.
- Enter the following URL:
https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z} - Click OK to save the connection.
- You should now see the new Google Satellite connection listed under XYZ Tiles in the Browser panel. Drag the layer from the Browser panel to your Layers panel, or double-click it to add it to your map.
- You can now view Google Satellite imagery in your project.
This URL points to the Google Satellite service, where {x}, {y}, and {z} are placeholders for the map tile coordinates and zoom level.
Important note: Be aware of Google’s Terms of Service and usage limits. Using Google Maps tile data outside of the official Google Maps Platform API violates Google’s Terms of Service, regardless of whether it is for personal or commercial use. If you need this data for a project, consider using the Google Maps Platform with an API key and following the appropriate licensing guidelines.
The following URLs can be used to access various Google Maps layer types in QGIS via the XYZ Tiles method. Each URL corresponds to a different map style offered by Google.
- Google Maps (Standard Road Map)
- URL:
https://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z} - Description: This URL provides the standard road map view, including streets, place names, and other labels — similar to the default view on Google Maps. It is useful for general mapping and navigation purposes.
- Google Satellite
- URL:
https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z} - Description: This URL fetches high-resolution satellite imagery without road labels or place names.
- Google Satellite Hybrid
- URL:
https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z} - Description: This hybrid view overlays road and location labels onto satellite imagery. It combines the visual detail of satellite views with the contextual information of road maps, making it ideal for users who need a comprehensive understanding of an area.
- Google Terrain
- URL:
https://mt1.google.com/vt/lyrs=t&x={x}&y={y}&z={z} - Description: This layer displays physical terrain information such as elevation and vegetation. Contour lines and shading indicate landscape features, which can be useful for outdoor activities, planning, or landscape analysis.
- Google Roads
- URL:
https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z} - Description: This layer shows roads only, without terrain or satellite imagery in the background. It is particularly useful for projects that require clear, concise road information without additional geographical detail.
Each of these layers serves a different purpose depending on your visual or analytical needs in QGIS. When adding them to QGIS, be mindful of Google’s Terms of Service regarding the use of their map data, especially for commercial applications.
Frequently asked questions about using Google Maps layers in QGIS
Is it legal to use Google Maps layers in QGIS?
It is important to be aware of Google’s Terms of Service when using their map data. Accessing Google Maps tiles via the XYZ Tiles method without an API key violates Google’s Terms of Service. This applies to both personal and commercial use. Always review the current terms and consider using the official Google Maps Platform API or alternative open-data sources where licensing is clear.
Can I use Google Maps layers in QGIS for commercial projects?
Using Google Maps tile data in commercial projects without proper authorisation breaches Google’s Terms of Service. If you intend to use Google’s mapping data commercially, you must do so through the Google Maps Platform, which includes the appropriate licensing for commercial use.
Are there any alternatives to Google Maps for use in QGIS?
There are several alternatives to Google Maps that can be used in QGIS, including OpenStreetMap, Bing Maps, and various governmental and institutional geospatial services. These services often have fewer restrictions than Google Maps and may be more suitable for commercial or large-scale use.
How do I update the Google Maps layers in QGIS?
Google Maps layers in QGIS update automatically as they are streamed from Google’s servers. If you experience outdated imagery or maps, it may be due to caching in QGIS or a delay in updates on Google’s side.
How can I cache Google Maps layers in QGIS for offline use?
Caching Google Maps layers for offline use without Google’s explicit permission may violate their Terms of Service. If offline access is necessary, consider using map services that are specifically designed for offline usage or that offer explicit caching permissions.
What do the different parameters in the Google Maps XYZ URLs mean?
In the XYZ URLs, lyrs specifies the layer type (for example, s for satellite, m for the standard road map, h for roads overlay, t for terrain, and y for the hybrid view). The placeholders {x}, {y}, and {z} represent the tile column, tile row, and zoom level respectively. Adjusting these parameters changes the type of map data retrieved and the level of detail displayed.
By keeping these points in mind, you can effectively use and manage Google Maps layers in QGIS while respecting legal constraints and optimising for your specific needs.






