Skip to content

Commit

Permalink
The type for WMS and WMTS links should be set to the image media ty…
Browse files Browse the repository at this point in the history
…pe that the client should request for tiles.
  • Loading branch information
m-mohr committed Oct 18, 2023
1 parent ab986f7 commit 2f2643b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- The `type` for WMS and WMTS links should be set to the image media type that the client should request for tiles.

### Deprecated

### Removed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Only (tiled) "Basic WMS" is supported at this time.
| --------------- | -------------------- | ----------- |
| rel | string | **REQUIRED**. Must be set to `wms`. |
| href | string | **REQUIRED**. Link to the WMS, without any WMS specific query parameters. |
| type | string | Recommended to be set to the media type the Capabilities document, usually `text/xml`. |
| type | string | The media type to be used for the tile requests, e.g. `image/png` or `image/jpeg`. |
| wms:layers | \[string] | **REQUIRED**. The layers to show on the map by default. Can't be empty. |
| wms:styles | \[string] | The styles to show on the map by default. If not provided or empty, an empty string will be used for the query parameter. |
| wms:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request as query parameters (e.g. the dimensions `TIME` or `ELEVATION`). |
Expand All @@ -68,7 +68,7 @@ Links to a [OGC Web Map Tile Service](https://www.ogc.org/standards/wmts) (WMTS)
| --------------- | -------------------- | ----------- |
| rel | string | **REQUIRED**. Must be set to `wmts`. |
| href | string | **REQUIRED**. Link to the WMTS, without any WMTS specific query parameters. |
| type | string | Recommended to be set to the media type the Capabilities document, usually `application/xml`. |
| type | string | The media type to be used for the tile requests, e.g. `image/png` or `image/jpeg`. |
| href:servers | \[string] | See [href:servers](#hrefservers) below for details. |
| wmts:layer | string\|\[string] | **REQUIRED**. The layers to show on the map by default, either a list of layer names or a single layer name. |
| wmts:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request as key-value-pairs, usually added as query parameters. |
Expand Down
4 changes: 2 additions & 2 deletions examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{
"href": "https://maps.example.com/wmts",
"rel": "wmts",
"type": "application/xml",
"type": "image/png",
"title": "RGB composite visualized through a WMTS",
"wmts:layer": "rgb",
"wmts:dimensions": {
Expand All @@ -51,7 +51,7 @@
{
"href": "https://maps.example.com/wms",
"rel": "wms",
"type": "text/xml",
"type": "image/png",
"title": "RGB composite visualized through a WMS",
"wms:layers": [
"rgb"
Expand Down
4 changes: 2 additions & 2 deletions examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{
"href": "https://maps.example.com/wmts",
"rel": "wmts",
"type": "application/xml",
"type": "image/png",
"title": "RGB composite visualized through a WMTS",
"wmts:layer": [
"streets",
Expand All @@ -60,7 +60,7 @@
{
"href": "https://maps.example.com/wms",
"rel": "wms",
"type": "text/xml",
"type": "image/png",
"title": "RGB composite visualized through a WMS",
"wms:layers": [
"rgb"
Expand Down

0 comments on commit 2f2643b

Please sign in to comment.