Skip to content

set TILED=true only when loading layers from geoserver #7879

@landryb

Description

@landryb

Description

slightly different from #7877, loading a WMS layer from mapproxy, mapstore inconditionally adds the TILED=true parameter by default to all WMS requests.

In some mapproxy setup using 'mixed' caches (such as the ortho layer from https://tiles.craig.fr/ortho/service) this triggers an exception mapproxy-side which replies with <ServiceException>Invalid request: invalid tile format, use mixed</ServiceException>.

example: https://tiles.craig.fr/ortho/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=true&LAYERS=ortho&STYLES=&SRS=EPSG:3857&CRS=EPSG:3857&TILED=true&WIDTH=256&HEIGHT=256&BBOX=626172.1357121654,5557277.704445455,704443.6526761858,5635549.221409475

removing TILED=true from the URL works to load a single tile, or going to the layer properties and checking 'singletile' also works within mapstore.

How to reproduce

Expected Result
loading a WMS layer from mapproxy should work

Current Result
it fails

Other useful information

interoperability is hard - TILED=true should only be added if we know we're talking to geoserver, or should be behind a configurable toggle per-server ?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions