[Bug] WMSLayer positions EPSG:4326 images as CARTESIAN

Open Beginner friendly
#10,806 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@athomct is already working on this.

Since Nov 29, 2026.

  • #10808 by @athomct — closed without merging
  • #11379 by @athomct — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start in WMSLayer's renderLayers() and inspect how the GetImageParameters passed to getImage() stores the coordinate reference system. Check the existing unit test that records the request and inspects the sub layer; done means an EPSG:4326 request renders with _imageCoordinateSystem set to COORDINATE_SYSTEM.LNGLAT.

Written by the indexing model from the issue text.

Description

Description

WMSLayer positions EPSG:4326 images as if they were Web Mercator.

renderLayers() picks the BitmapLayer image coordinate system from lastRequestParameters.srs:

_imageCoordinateSystem:
  lastRequestParameters.srs === 'EPSG:4326' ? COORDINATE_SYSTEM.LNGLAT : COORDINATE_SYSTEM.CARTESIAN,

The stored object is the GetImageParameters passed to getImage(), whose field has been crs since #8262 (crs: srs). lastRequestParameters.srs is always undefined, so the image is always CARTESIAN. This affects srs: 'EPSG:4326' and srs: 'auto' under GlobeView, which resolves to EPSG:4326.

Expected Behavior

An image requested in EPSG:4326 is rendered with _imageCoordinateSystem: COORDINATE_SYSTEM.LNGLAT.

Steps to Reproduce

Render new _WMSLayer({data: wmsUrl, layers: [...], srs: 'EPSG:4326'}) in a MapView: the GetMap request uses CRS=EPSG:4326, but the image is stretched as a Web Mercator rectangle. Reproduced on master with a unit test that records the request and inspects the sub layer.

Environment
  • Framework version: deck.gl master (b04c8f2bd), also 9.4.0
  • Browser: any
  • OS: any
Dominant language
TypeScript
Stars
14.8k
Forks
2.3k
Avg merge
1d 9h
Merged PRs (30d)
230

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from visgl/deck.gl

All issues in visgl/deck.gl

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.