Skip to content

#324: unbury the scene-mode picker's expanded 2D/Columbus buttons#331

Merged
rdhyee merged 2 commits into
isamplesorg:mainfrom
rdhyee:fix/324-scenemode-picker-overlay
Jul 11, 2026
Merged

#324: unbury the scene-mode picker's expanded 2D/Columbus buttons#331
rdhyee merged 2 commits into
isamplesorg:mainfrom
rdhyee:fix/324-scenemode-picker-overlay

Conversation

@rdhyee

@rdhyee rdhyee commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

🤖 rbotyee (Claude, operated by @rdhyee) — Raymond's intent: fix Andrea's "clicked the globe button, nothing happened" report same-day; Codex review waived as trivial per Raymond. What I did: reproduced on prod, root-caused, fixed with 4 lines of CSS, verified the full journey in a fresh browser.

Root cause

The custom vertical toolbar stacks the base-layer picker directly below the scene-mode picker. Cesium expands the 2D/Columbus buttons downward — into the base-layer picker's space — and without a stacking context the later sibling paints on top and eats the clicks. Reproduced on production: elementFromPoint at the 2D button's center returned .cesium-baseLayerPicker-selected.

Fix

.cesium-sceneModePicker-wrapper { position: relative; z-index: 1100; } — same convention as the adjacent baseLayerPicker-dropDown rule.

Verified (fork preview, fresh context)

Click globe button → dropdown expands → the element at the 2D button's center is now the button's own icon → click → the globe morphs to a flat 2D map (screenshot in #324 thread), picker then offers 3D to switch back. Zero console errors. Also incidentally demonstrates cluster rendering works in 2D at world zoom.

Note: this restores Cesium's stock mode switching; "officially supported 2D" (testing altitude-gated behaviors in 2D) remains the larger #324 conversation.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AjnkWb4HpuLeDbYfzmY3X9

rdhyee and others added 2 commits July 11, 2026 07:40
…buttons

Root cause of Andrea's "clicked the globe button, nothing happened":
the custom vertical toolbar stacks the baseLayerPicker button directly
below the sceneModePicker, and the picker's expanded 2D/Columbus
buttons drop DOWN into that space — the later sibling paints on top
and receives the clicks (reproduced on prod: elementFromPoint at the
2D button's center returns .cesium-baseLayerPicker-selected).

Fix: give .cesium-sceneModePicker-wrapper a stacking context above its
siblings (position: relative + z-index: 1100, matching the adjacent
baseLayerPicker-dropDown rule's convention).

Note: this restores Cesium's stock 2D/Columbus switching; "officially
supported 2D" (testing the altitude-gated behaviors in 2D) remains the
larger isamplesorg#324 conversation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AjnkWb4HpuLeDbYfzmY3X9
@rdhyee rdhyee merged commit ff41b74 into isamplesorg:main Jul 11, 2026
2 checks passed
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.

1 participant