Skip to content

Commit

Permalink
Fix #10595 add missing 'FORMAT' parameter to WMTS GetFeatureInfo requ…
Browse files Browse the repository at this point in the history
…ests (#10596) (#10606)

* add missing 'FORMAT' parameter to WMTS GetFeatureInfo requests

this is required by the WMTS spec to be the same format as would
be used for a GetTile request, and this allows GFI requests to
succeed on https://data.geopf.fr/wmts.

* fix mapinfo wmts utils test

Co-authored-by: Landry Breuil <landryb@users.noreply.github.com>
  • Loading branch information
allyoucanmap and landryb authored Oct 8, 2024
1 parent 7b4b435 commit 916457e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/client/utils/mapinfo/__tests__/wmts-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ describe('mapinfo wmts utils', () => {
request: 'GetFeatureInfo',
layer: 'gs:us_states',
infoformat: 'text/plain',
format: 'image/png',
style: '',
tilecol: 3,
tilerow: 5,
Expand Down
1 change: 1 addition & 0 deletions web/client/utils/mapinfo/wmts.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default {
request: 'GetFeatureInfo',
layer: layer.name,
infoformat: props.format,
format: layer.format,
style: layer.style || '',
...assign({}, params),
tilecol: tileCol,
Expand Down

0 comments on commit 916457e

Please sign in to comment.