Skip to content

Commit 2f2643b

Browse files
committed
The type for WMS and WMTS links should be set to the image media type that the client should request for tiles.
1 parent ab986f7 commit 2f2643b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
### Changed
1414

15+
- The `type` for WMS and WMTS links should be set to the image media type that the client should request for tiles.
16+
1517
### Deprecated
1618

1719
### Removed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Only (tiled) "Basic WMS" is supported at this time.
5555
| --------------- | -------------------- | ----------- |
5656
| rel | string | **REQUIRED**. Must be set to `wms`. |
5757
| href | string | **REQUIRED**. Link to the WMS, without any WMS specific query parameters. |
58-
| type | string | Recommended to be set to the media type the Capabilities document, usually `text/xml`. |
58+
| type | string | The media type to be used for the tile requests, e.g. `image/png` or `image/jpeg`. |
5959
| wms:layers | \[string] | **REQUIRED**. The layers to show on the map by default. Can't be empty. |
6060
| 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. |
6161
| wms:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request as query parameters (e.g. the dimensions `TIME` or `ELEVATION`). |
@@ -68,7 +68,7 @@ Links to a [OGC Web Map Tile Service](https://www.ogc.org/standards/wmts) (WMTS)
6868
| --------------- | -------------------- | ----------- |
6969
| rel | string | **REQUIRED**. Must be set to `wmts`. |
7070
| href | string | **REQUIRED**. Link to the WMTS, without any WMTS specific query parameters. |
71-
| type | string | Recommended to be set to the media type the Capabilities document, usually `application/xml`. |
71+
| type | string | The media type to be used for the tile requests, e.g. `image/png` or `image/jpeg`. |
7272
| href:servers | \[string] | See [href:servers](#hrefservers) below for details. |
7373
| 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. |
7474
| wmts:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request as key-value-pairs, usually added as query parameters. |

examples/collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{
4242
"href": "https://maps.example.com/wmts",
4343
"rel": "wmts",
44-
"type": "application/xml",
44+
"type": "image/png",
4545
"title": "RGB composite visualized through a WMTS",
4646
"wmts:layer": "rgb",
4747
"wmts:dimensions": {
@@ -51,7 +51,7 @@
5151
{
5252
"href": "https://maps.example.com/wms",
5353
"rel": "wms",
54-
"type": "text/xml",
54+
"type": "image/png",
5555
"title": "RGB composite visualized through a WMS",
5656
"wms:layers": [
5757
"rgb"

examples/item.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{
5151
"href": "https://maps.example.com/wmts",
5252
"rel": "wmts",
53-
"type": "application/xml",
53+
"type": "image/png",
5454
"title": "RGB composite visualized through a WMTS",
5555
"wmts:layer": [
5656
"streets",
@@ -60,7 +60,7 @@
6060
{
6161
"href": "https://maps.example.com/wms",
6262
"rel": "wms",
63-
"type": "text/xml",
63+
"type": "image/png",
6464
"title": "RGB composite visualized through a WMS",
6565
"wms:layers": [
6666
"rgb"

0 commit comments

Comments
 (0)