diff --git a/CHANGELOG.md b/CHANGELOG.md index 0783675..61e0438 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 72891a7..c446e10 100644 --- a/README.md +++ b/README.md @@ -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\ | 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) | --------------- | -------------------- | ----------- | | 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\ | Any additional dimension parameters to add to the request as key-value-pairs, usually added as query parameters. | diff --git a/examples/collection.json b/examples/collection.json index 342a879..46ccbc4 100644 --- a/examples/collection.json +++ b/examples/collection.json @@ -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": { @@ -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" diff --git a/examples/item.json b/examples/item.json index dcd88b0..096c391 100644 --- a/examples/item.json +++ b/examples/item.json @@ -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", @@ -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"