Skip to content

[9.4-release] fix(geo-layers): clip MVTLayer sub layers to the tile under GlobeView (#10727) - #11060

Merged
chrisgervang merged 1 commit into
9.4-releasefrom
chr/backport-10727-9.4
Nov 7, 2026
Merged

chrisgervang merged 1 commit into
9.4-releasefrom
chr/backport-10727-9.4

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #10727, for #10972. Fixes #10716 on 9.4.

Background

Under GlobeView, MVTLayer sub layers use WGS84 data and skip ClipExtension. A feature written into the buffers of several tiles is then drawn once per tile, so translucent fills show dark seams along tile edges.

The version of #10727 merged to master builds on #10874's tile-local sub layer data, which isn't in 9.4, so it can't be cherry-picked. This backports the September version of #10727 (ff212cb815), which clips WGS84 sub layers to the tile's lng/lat bbox. Original fix by @cholmes.

Change List

Translucent MVT fill on GlobeView with the test fixture tiles, before and after:

before
after

Verified locally on 9.4: mvt-layer.spec.ts passes (17 tests; the two new no-warning tests fail without the fix). The geo-layers, extensions and carto suites pass (261 tests, 4 skipped), as do the MVT render tests. Type check (tsc -b for geo-layers) and yarn lint pass.

…#10727)

Backport of #10727 for 9.4, from its September version (ff212cb).
The version merged to master builds on the tile-local sub layer data
from #10874, which isn't in 9.4.

Under GlobeView, sub layers use WGS84 data and skipped ClipExtension, so
a feature in the buffers of several tiles was drawn by each of them.
WGS84 sub layers are now clipped to the tile's lng/lat bbox, and
tile-local sub layers keep their unit-square clip.

Also includes the follow-up from master: don't warn about ClipExtension's
default clipBounds.
@chrisgervang chrisgervang mentioned this pull request Nov 7, 2026
29 of 30 tasks
@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with one previously reported documentation correction remaining.

Findings

  1. P2 extent does not clip features ▶

Summary

This backport clips MVTLayer sublayers to their tiles under GlobeView, preventing buffered features from being drawn by neighboring tiles.

  • MVT sub layers clip to their own tile bounds.

Reviews (2) · Last reviewed commit: "fix(geo-layers): clip MVTLayer sub layer..." · Reviewed by Greptile


## Remarks

- `clipBounds` has no effect. Sub layers are always clipped to their own tile. Use [`extent`](./tile-layer.md#extent) to limit the area that is rendered.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 extent does not clip features

extent only selects tiles. If the rectangle cuts through a tile, that tile still draws features outside it. Recommending it as a replacement for clipBounds can mislead users who need an exact boundary. Say that extent limits which tiles load and render, not the exact area drawn.

Suggested change
- `clipBounds` has no effect. Sub layers are always clipped to their own tile. Use [`extent`](./tile-layer.md#extent) to limit the area that is rendered.
- `clipBounds` has no effect. Sub layers are always clipped to their own tile. Use [`extent`](./tile-layer.md#extent) to limit which tiles load and render; features in those tiles are not clipped to the exact extent.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 83.122% — chr/backport-10727-9.4 into 9.4-release. No base build found for 9.4-release.

@chrisgervang
chrisgervang merged commit 47f3b5e into 9.4-release Nov 7, 2026
8 checks passed
@chrisgervang
chrisgervang deleted the chr/backport-10727-9.4 branch November 7, 2026 19:34
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.

2 participants