Project: QGIS

Version: 3.24

Feature: Template parameter {usage} for XYZ raster and vector tiles

For XYZ tile-based raster layers and for vector tile layers, we now allow the possibility to insert {usage} template parameters (in addition to {x}, {y}, {z}). If present, this parameter will be replaced by the context in which the request is being made.

The possible context values are:

  • view - when the request comes from 2D or 3D map canvas
  • export - when the request comes from exporting a layer or exporting a print layout for high-quality output (map previews in print layout designer are classed as “view”)
  • unknown - when coming from some other context, but the source is unknown

This functionality is useful for MapTiler clients, where they need to recognize the context in which tiles are used in order to bill users accordingly.

This feature was funded by MapTiler

This feature was developed by Lutra Consulting (Vincent Cloarec)