Often, when exploring your data, you may feel somewhat lost. Without the context of the known world, a layer can seem like a blob of information floating in space. By adding an atlas-style map, air photos, or another BaseMap, you can begin to see how your data fits in the on-the-ground reality. However, adding such layers often takes considerable preprocessing work; sometimes, you just don't want to go through this until you know you need it. What's the solution? Use a premade layer from a web service.
This recipe is almost identical to the previous recipe. QuickMapServices is a replacement for the OpenLayers plugin, which is being discontinued (deprecated). We kept this recipe because it's still a commonly-mentioned plugin and works slightly differently. However, please consider using QuickMapServices.
The Openlayers plugin works best when you have another dataset that you want to provide extra context for. Start by first loading such a layer and then zooming in to its extent.
You will need the following:
Davis_DBO_Centerline-wgs84.shp)Starting with a new QGIS project, follow these instructions to load BaseMap from the Web with the Openlayers plugin:
The following screenshot shows how the screen will look:

The OpenLayers plugin is a web-based tool, based on the similarly named OpenLayers library to create web-based maps in an Internet browser. However, instead of displaying the maps in the browser, this plugin renders them into an active QGIS canvas (that is, a map).
There are a few things to be cautious of when using the OpenLayers plugin. It doesn't always line up quite right, especially when zoomed out to big areas. First, check whether your other layers' projections are defined correctly and then try to reset the map by panning slightly to the side. The key idea to remember is that tiled services generally only exist for EPSG:3857 and at a very specific set of scales. QGIS will attempt to pick the closest matching scale and resample the scale to make it fit. This also explains why loading such layers can sometimes be slow.
While it may be legal to view the maps, depending on layers selected, it may not be legal to digitize maps based on them, print them, or, otherwise, save them for offline use. The license varies by data source. So, make sure to check for the sources you want to use by going online and reading the Terms of Service on their websites. If your use case is outside of generally viewing for quick reference, you will probably need to spend some time obtaining a license or permission for your use. OpenStreetMap-based sources are often good choices as the licenses typically just require attribution.