diff --git a/docs/source/publishing/ogcapi-tiles.rst b/docs/source/publishing/ogcapi-tiles.rst index 5a72f2b56..a8b2ad843 100644 --- a/docs/source/publishing/ogcapi-tiles.rst +++ b/docs/source/publishing/ogcapi-tiles.rst @@ -196,6 +196,7 @@ This code block shows how to configure pygeoapi to read map tiles from a WMTS. options: wmts_layer: camb:hex350_grid_mental_1920 # the layer name of the wmts wmts_tile_matrix_set: WebMercatorQuad # the name of the tile matrix set of the wmts. + wmts_style: camb:hex350_grid_mental_1920 # the style identifier of the wmts. Default to empty scheme: WebMercatorQuad # the aligning scheme in pygeoapi. zoom: min: 0 diff --git a/pygeoapi/provider/wmts_facade.py b/pygeoapi/provider/wmts_facade.py index b15a2da13..fa3b86d3b 100644 --- a/pygeoapi/provider/wmts_facade.py +++ b/pygeoapi/provider/wmts_facade.py @@ -161,7 +161,7 @@ def get_tiles(self, layer=None, tileset=None, 'tileMatrix': z, 'tileRow': y, 'tileCol': x, - 'style': '' + 'style': self.options.get('wmts_style', '') } if '?' in self.data: