Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/publishing/ogcapi-tiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Default to empty"-> "if empty or this key is missing, it falls back to the default style."

scheme: WebMercatorQuad # the aligning scheme in pygeoapi.
zoom:
min: 0
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/provider/wmts_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def get_tiles(self, layer=None, tileset=None,
'tileMatrix': z,
'tileRow': y,
'tileCol': x,
'style': ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current code base is passing the mandatory "style" parameter to WMTS, but not exposing it to the user.

'style': self.options.get('wmts_style', '')
}

if '?' in self.data:
Expand Down