Skip to content

fix(geo-layers): Pass zoomOffset through TerrainLayer to child TileLayer. - #10382

Merged
chrisgervang merged 4 commits into
visgl:masterfrom
asford:master
Jun 16, 2026
Merged

chrisgervang merged 4 commits into
visgl:masterfrom
asford:master

Conversation

@asford

@asford asford commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor
TerrainLayer.zoomOffset.fix.mov

Closes #10366

Change List

  • Expand Tile example to include zoomOffset parameter.
  • Update Terrain example to include (zoomOffset, maxZoom, ...) parameters matching Tile example.
  • Update TerrainLayer to properly pass zoomOffset parameter to underlying Tile layer.
  • Add test that zoomOffset parameter properly affects which tiles are loaded.

Manually verified zoomOffset behavior in updated example in addition to automated test.

asford added 3 commits June 15, 2026 13:25
- Add unit test 'TerrainLayer forwards zoomOffset to TileLayer in tiled mode'
  (currently fails - bug confirmed)
- Add zoomOffset parameter to TerrainDemo example (range: -2 to +2)
- Wire zoomOffset prop from example wrapper to App component
- Update App component to accept and pass zoomOffset to TerrainLayer

This infrastructure is ready. The test will pass once the core fix
(prop forwarding in TerrainLayer.renderLayers) is implemented.
@charlieforward9 charlieforward9 self-assigned this Jun 16, 2026

@charlieforward9 charlieforward9 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems like a nice simple pass through of props. I added a screen recording to the description to help other reviewer validate easily.

Any concerns with merging @chrisgervang ?

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 83.424%. remained the same — asford:master into visgl:master

@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.

Yeah, LGTM. Thanks for adding the video too.

@chrisgervang
chrisgervang merged commit 6b265fd into visgl:master Jun 16, 2026
5 checks passed
@chrisgervang chrisgervang added this to the v9.3 patch releases milestone Jun 28, 2026
chrisgervang added a commit that referenced this pull request Oct 22, 2026
…10382 backport

The 9.3 cherry-pick of #10382 also brought in the GlobeView test from #10250, a 9.4 feature that isn't on 9.3-release. TerrainLayer on 9.3 always renders meshes in CARTESIAN, so the test fails on every run.
chrisgervang added a commit that referenced this pull request Oct 22, 2026
…10382 backport (#10898)

The 9.3 cherry-pick of #10382 also brought in the GlobeView test from #10250, a 9.4 feature that isn't on 9.3-release. TerrainLayer on 9.3 always renders meshes in CARTESIAN, so the test fails on every run.
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.

[Bug] TerrainLayer does not forward zoomOffset prop to TileLayer, breaking zoom adjustment for terrain tiles

4 participants