Skip to content

feat(examples): jump to the selected topo map instead of flying - #868

Merged
kylebarron merged 1 commit into
mainfrom
kyle/usgs-topo-jump
Nov 9, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/usgs-topo-jump

Conversation

@kylebarron

@kylebarron kylebarron commented Nov 9, 2026 •

Copy link
Copy Markdown
Member
usgs-topo-jump-vs-fly.mp4

Note

This PR was written by Claude (Claude Code), not by @kylebarron.

The usgs-topo example now jumps to the topo map you pick, instead of flying there over one second. You see its tiles load at once, rather than after the camera stops.

While the camera flies, the tiles in view change every frame, so COGLayer's 50 ms debounceTime (#809) holds back tile requests until the animation ends. After picking another map, the fly-to sent the tile request 1.01 s after the pick. The jump sends it at 0.20 s.

Changes

  • fitBounds in onSourceLoad passes animate: false instead of duration: 1000. It still fits the map with 40 px padding.

Checked

  • The example typechecks and builds, and Biome is clean.
  • In Chrome, I loaded the page cold, then picked "Mount St Helens" after 5 s, with production builds of main and of this branch. One run each, times from the pick:
main (flies) This PR (jumps)
Tile request sent 1.01 s 0.20 s
All tiles loaded 1.33 s 0.51 s
GeoTIFF requests 2 2

🤖 Written by Claude Code

The fly-to held back tile requests until the camera stopped, so a map's
tiles only started loading about a second after it was picked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kylebarron kylebarron added this to the 0.10 milestone Nov 9, 2026
@kylebarron
kylebarron enabled auto-merge (squash) November 9, 2026 16:25
@kylebarron
kylebarron merged commit c17e085 into main Nov 9, 2026
2 checks passed
@kylebarron
kylebarron deleted the kyle/usgs-topo-jump branch November 9, 2026 16:28
kylebarron added a commit that referenced this pull request Nov 9, 2026
> [!NOTE]
> This PR was written by Claude (Claude Code), not by @kylebarron.

Moves the PR title check from `pull_request_target` to `pull_request`.

From December 2, 2026, GitHub blocks `pull_request_target` workflows in
public repositories by default
([docs](https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target#default-policy-for-pull_request_target)).
A scheduled brownout on November 9 already failed this workflow at
startup on #868 through #871. The check only reads the PR title from the
event, so it doesn't need the write token that `pull_request_target`
gives fork PRs.

Under `pull_request`, fork PRs get a read-only token, and the action
fails the check when it can't add a label. So labels are now added only
to PRs from branches in this repository. Nothing reads these labels.

The job is renamed from `Lint` to `PR title`. Both this job and CI's
lint job reported a check named `Lint`, which is required on `main`, so
CI's lint alone satisfied it. After this change, the required `Lint`
check is CI's lint only. The title check becomes required only if `PR
title` is added to the required checks.

🤖 Written by [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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