Skip to content

Update spinning globe example#79

Merged
giswqs merged 1 commit intomainfrom
spinning
Apr 20, 2026
Merged

Update spinning globe example#79
giswqs merged 1 commit intomainfrom
spinning

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Apr 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 20, 2026 14:56
@giswqs giswqs merged commit fb8e58a into main Apr 20, 2026
4 checks passed
@giswqs giswqs deleted the spinning branch April 20, 2026 15:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the spin-globe example to showcase a richer “spinning globe” demo by adding additional raster/vector layers and a layer toggle UI, while simplifying the HTML UI.

Changes:

  • Add LayerControl UI plus additional demo layers (USGS imagery, Global Surface Water occurrence, MGRS grid via PMTiles).
  • Switch to globe projection on style load and adjust initial zoom/center defaults.
  • Simplify spin-globe HTML by removing the custom info/speed panel.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
examples/spin-globe/main.ts Adds new sources/layers, PMTiles protocol registration, globe projection, and layer control UI.
examples/spin-globe/index.html Removes the old info panel/speed buttons UI, leaving just the map container.
.gitignore Ignores .playwright-cli generated artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +20 to 21
maplibregl.addProtocol("pmtiles", pmtilesProtocol.tile);

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