xyz_add_layer
Add an XYZ tile raster layer to QGIS for background basemaps like OpenStreetMap. Specify URL with {z}/{x}/{y} placeholders.
Instructions
Add an XYZ tile raster layer - a background basemap such as OSM.
url must contain {z}/{x}/{y} placeholders; defaults to the standard
OpenStreetMap tile server. Respect the tile provider's usage policy for
anything beyond light interactive use - self-host or use a licensed
provider for heavier workloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crs | No | EPSG:3857 | |
| url | No | https://tile.openstreetmap.org/{z}/{x}/{y}.png | |
| zmax | No | ||
| zmin | No | ||
| layer_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||