• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / deck.gl / 38159627874
84%

Build:
DEFAULT BRANCH: master
Ran 11 Oct 2026 05:34PM UTC
Jobs 1
Files 424
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Oct 2026 05:26PM UTC coverage: 83.518% (-0.01%) from 83.53%
38159627874

push

github

web-flow
fix(mapbox): guard getProjection against throw when map style is not ready (#10551)

* fix(mapbox): guard getProjection against throw when map style is not ready

map.getProjection() can throw (e.g. maplibre-gl's implementation calls
this.style.getProjection() without a guard on this.style) when invoked
before the map's style is attached — such as on the third addControl
call under React 19 StrictMode's dev-only double-invoke of mount effects.

The existing optional-chaining only guards against the method being
absent, not against the call itself throwing. Wrap the call in try/catch
and return 'mercator' as the safe default, matching what callers
(getDefaultView / MapboxOverlay#_onAddInterleaved) already expect for the
not-ready-yet case.

Fixes #10549

* Apply suggestion from @chrisgervang

* test(mapbox): cover getProjection fallback before style is set

---------

Co-authored-by: waterWang <waterWang@users.noreply.github.com>
Co-authored-by: Chris Gervang <chrisgervang@users.noreply.github.com>
Co-authored-by: Chris Gervang <chris.gervang@joby.aero>

9370 of 11716 branches covered (79.98%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

15774 of 18390 relevant lines covered (85.77%)

20037.11 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.36
-0.75% modules/core/src/viewports/viewport.ts
Jobs
ID Job ID Ran Files Coverage
1 38159627874.1 11 Oct 2026 05:34PM UTC 424
83.52
GitHub Action Run
Source Files on build 38159627874
  • Tree
  • List 424
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #38159627874
  • 539eeac1 on github
  • Prev Build on master (#38157898553)
  • Next Build on master (#38160197144)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc