Skip to content

feat(geo-layers): forward normalized colors to vector tiles - #11170

Merged
ibgreen merged 5 commits into
masterfrom
codex/normalized-vector-tiles
Nov 18, 2026
Merged

ibgreen merged 5 commits into
masterfrom
codex/normalized-vector-tiles

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

For #11146. Forward the Deck color convention to the default GeoJSON renderer used by TileLayer and MVTLayer. Keep customized render functions on their existing path. A convention change refreshes the rendered tile layers and reuses loaded tile data.

Validation

  • yarn lint
  • Focused TileLayer headless test toggles the convention in both directions and verifies no tile refetch.

Note

Low Risk
Low risk change scoped to default GeoJSON tile sublayer color interpretation, with safeguards to avoid unnecessary tile data refetches.

Overview
Forwards Deck's normalizedColors convention to the default GeoJSON sublayers rendered by TileLayer. This ensures vector tile features respect top-level normalized color inputs instead of defaulting to byte colors.

When the color convention toggles, TileLayer invalidates and regenerates cached tile sublayers without refetching tile data. Custom renderSubLayers implementations are unaffected and continue along their existing rendering path.

Reviewed by Cursor Bugbot for commit 1bca51c. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T23:20:41.830568Z 1aefda1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1aefda10f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The PR forwards Deck’s color convention to default GeoJSON tile renderers and refreshes their layers without reloading tile data.

  • TileLayer and MVTLayer render tile colors using Deck’s color setting.

Reviews (4) · Last reviewed commit: "docs(test): describe the tile color asse..." · Reviewed by Greptile

@ibgreen ibgreen mentioned this pull request Nov 17, 2026
22 of 52 tasks
@coveralls

coveralls commented Nov 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.736% (+0.009%) from 82.727% — codex/normalized-vector-tiles into master

@ibgreen
ibgreen merged commit ea2f0fe into master Nov 18, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/normalized-vector-tiles branch November 18, 2026 00:05

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1bca51c after merge; follow-ups below. No P1s. The default renderer converts user colors once in TileGeoJsonLayer, and the toggle rebuilds tile layers without refetching.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.


Generated by Claude Code

): Layer | null | LayersList {
return this.props.renderSubLayers(props);
const {renderSubLayers} = this.props;
if (renderSubLayers === renderGeoJsonTile) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P2: CARTO VectorTileLayer colors now depend on the tile format. MVT tilesets reach this branch and read plain arrays as 0–1. CARTO binary tiles go through new GeoJsonLayer(subLayerProps) in vector-tile-layer.ts:205 and stay bytes.

  • fetchMap builds byte colors, so they clamp to 255 per nonzero channel on MVT tilesets only.

Should VectorTileLayer follow one convention for both formats?


Generated by Claude Code

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