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

rm-hull / maps / 25607532072 / 1
25%
main: 25%

Build:
DEFAULT BRANCH: main
Ran 09 May 2026 05:41PM UTC
Files 90
Run time 2s
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

09 May 2026 05:40PM UTC coverage: 24.488% (+0.3%) from 24.225%
25607532072.1

push

github

web-flow
feat: Add Contour Lines overlay and MapLibreLayer component (#1188)

* wip

* working but crap

* feat: improve MapLibreLayer opacity handling

Refactored `MapLibreLayer` to handle opacity transitions more accurately
by snapshotting original layer opacities and applying them as a
multiplier. This ensures that layers with different base opacities
retain their relative transparency levels.

- Added support for `background`, `circle`, `fill-extrusion`, `haze`,
  `raster`, and `symbol` layer types.
- Snapshots are captured on initial load and re-captured when the
  underlying style URL changes.
- Updated **Contour Lines** overlay configuration to improve visibility
  at lower zoom levels and corrected the display name.

```mermaid
sequenceDiagram
    participant App as React Component
    participant ML as MapLibreLayer
    participant Map as MapLibre Map
    App->>ML: New opacity prop
    alt Snapshot not initialized
        ML->>Map: getStyle()
        Map-->>ML: Style Specification
        ML->>ML: buildOpacitySnapshot()
    end
    ML->>ML: applyOpacity(opacity * base)
    ML->>Map: setPaintProperty() for all layers
```

* fix: support expressions and fix opacity handling

This change improves how layer opacity is managed by supporting MapLibre
expressions and preventing progressive value degradation.

- Use a `WeakMap` to store opacity snapshots securely against layer
  instances.
- Support MapLibre expressions (e.g., zoom-based interpolation) by using
  the `["*", value, opacity]` expression for scaling.
- Fix a typo in `OPACITY_PROPERTIES` where `haze` was used instead of
  `heatmap`.
- Ensure snapshots are cleared and rebuilt when the map style changes to
  avoid applying values to non-existent or different layers.
- Add comprehensive unit tests for internal opacity logic.

```mermaid
sequenceDiagram
    participant C as MapLibreLayer
    participant W as WeakMap (Snapshots)
    participant M as MapLibre Map

    C->>M: withStyleLoaded()
    M-->>... (continued)

170 of 690 branches covered (24.64%)

Branch coverage included in aggregate %.

284 of 1164 relevant lines covered (24.4%)

2.63 hits per line

Source Files on job 25607532072.1
  • Tree
  • List 90
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25607532072
  • b5f99007 on github
  • Prev Job for on main (#25600874605.1)
  • Next Job for on main (#25609402468.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc