Repository navigation
feat(geo-layers): forward normalized colors to vector tiles - #11170
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
[Medium impact] The PR appears safe to merge. SummaryThe PR forwards Deck’s color convention to default GeoJSON tile renderers and refreshes their layers without reloading tile data.
Reviews (4) · Last reviewed commit: "docs(test): describe the tile color asse..." · Reviewed by Greptile |
chrisgervang
left a comment
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
fetchMapbuilds 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
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
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
normalizedColorsconvention to the default GeoJSON sublayers rendered byTileLayer. This ensures vector tile features respect top-level normalized color inputs instead of defaulting to byte colors.When the color convention toggles,
TileLayerinvalidates and regenerates cached tile sublayers without refetching tile data. CustomrenderSubLayersimplementations 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.