Skip to content

fix(layers): use selected vector channel for quantile options - #3964

Merged
igorDykhta merged 1 commit into
masterfrom
fix/vector-fill-quantile-20261102
Nov 2, 2026
Merged

igorDykhta merged 1 commit into
masterfrom
fix/vector-fill-quantile-20261102

Conversation

@igorDykhta

Copy link
Copy Markdown
Collaborator

Fill-color Quantile availability incorrectly depended on the stroke field. Resolve metadata and the active scale from the requested visual channel, so fill/stroke choices stay independent and each active Quantile survives metadata loading.

Tests cover missing, non-quantile and quantile fields in both channels, loading-time scale retention, dynamic color and the existing Jenks restriction.

Verification: PASS targeted Tape (160 assertions), changed-file ESLint/Prettier and diff whitespace. FAILED as expected against unchanged master (regression reproduction). PASS full yarn agent:verify on Node 24.21.0 (initial sandbox attempt failed because MCP test listeners could not bind localhost; rerun with test permissions passed). PASS independent read-only review; no actionable findings.

Review:

  • Independent field/scale selection for fill and stroke
  • Loading and dynamic-color behavior

Signed-off-by: Igor Dykhta <igorDykhta@users.noreply.github.com>
@igorDykhta igorDykhta self-assigned this Nov 2, 2026
@igorDykhta
igorDykhta requested a review from lixun910 November 2, 2026 04:31
@igorDykhta
igorDykhta marked this pull request as ready for review November 2, 2026 05:53
Copilot AI balanced review requested due to automatic review settings November 2, 2026 05:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the channel-specific Quantile change, though verification was not run during this review.

No open issues 🎉

What changed in this PR

Fixes vector-tile Quantile availability so fill and stroke use their own selected field metadata and active scale, keeping the two channels independent.

Changes:

  • Resolves metadata and loading-time Quantile retention from the requested visual channel.
  • Adds regression coverage for field combinations, active-scale retention, dynamic color, and the existing Jenks restriction.

Verification: NOT RUN during this review.

File Description
test/​browser/​layer-tests/​vector-tile-layer-specs.js Tests independent fill/stroke Quantile options and loading behavior.
src/​layers/​src/​vector-tile/​vector-tile-layer.ts Uses the requested channel’s field and scale when filtering scale options.

Review effort: Balanced

@igorDykhta
igorDykhta merged commit 4696581 into master Nov 2, 2026
8 checks passed
@igorDykhta
igorDykhta deleted the fix/vector-fill-quantile-20261102 branch November 2, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants