[Bug] WMSLayer positions EPSG:4326 images as CARTESIAN
Maintainers usually reply within 1 day
@athomct is already working on this.
Since Nov 29, 2026.
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from visgl/deck.gl
-
[Bug] Tile3DLayer selects no tiles until the camera moves when tileset.json loads right after a layer updatePossibly taken @lee3Q claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[Bug] SplitterWidget calls onDragStart on drag end; Deck._getViews writes into the app's views arrayPossibly taken @04jennet-coder claimed this 20 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[Bug] MapLibreOverlay under React StrictMode: 'WebGL context already attached to device' because the attach path omits _reuseDevicesPossibly taken @jsve claimed this 84 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
visgl/deck.gl#10681 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[Bug] GoogleMapsOverlay crashes when a vector map is temporarily zero-widthPossibly taken @Juice-de-Orange claimed this 51 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
visgl/deck.gl#10596 · 1 comment · 15 reactions ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
can1357/oh-my-pi#21349 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ohcnetwork/care_fe#17474 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100