Skip to content

feat: crepuscule / shademap#220

Draft
vincentvdwal wants to merge 9 commits intomainfrom
216-look-into-sun-cycle-overlay-ontop-of-the-weather-maps
Draft

feat: crepuscule / shademap#220
vincentvdwal wants to merge 9 commits intomainfrom
216-look-into-sun-cycle-overlay-ontop-of-the-weather-maps

Conversation

@vincentvdwal
Copy link
Copy Markdown
Member

Summary

Copilot AI review requested due to automatic review settings January 29, 2026 08:50
@vincentvdwal vincentvdwal linked an issue Jan 29, 2026 that may be closed by this pull request
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 29, 2026

Deploying maps with  Cloudflare Pages  Cloudflare Pages

Latest commit: 914ae00
Status: ✅  Deploy successful!
Preview URL: https://09a269cf.maps-5aj.pages.dev
Branch Preview URL: https://216-look-into-sun-cycle-over.maps-5aj.pages.dev

View logs

Copy link
Copy Markdown

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

This PR integrates shadow simulation functionality into the map using the mapbox-gl-shadow-simulator library. The feature adds time-based shadow rendering to visualize how shadows change throughout the day based on the selected time.

Changes:

  • Added ShadeMap integration with mapbox-gl-shadow-simulator for real-time shadow rendering
  • Added new crepuscule preference to constants (though not yet fully integrated)
  • Created shadeMap store to manage the ShadeMap instance
  • Synchronized shadow updates with time selector changes

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
package.json Added mapbox-gl-shadow-simulator and crepuscule dependencies
package-lock.json Updated lock file with new dependency entries
src/lib/constants.ts Added crepuscule preference to defaults; modified indentation formatting
src/lib/stores/preferences.ts Added shadeMap store with ShadeMap type import
src/routes/+page.svelte Initialized ShadeMap on map load with terrain and configuration options
src/lib/components/time/time-selector.svelte Added ShadeMap date synchronization when time changes

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

Comment thread src/lib/constants.ts Outdated
Comment thread src/lib/stores/preferences.ts
Comment thread src/lib/constants.ts Outdated
Comment thread src/routes/+page.svelte
Comment thread package.json
Comment thread src/lib/stores/preferences.ts Outdated
Comment thread src/routes/+page.svelte
@vincentvdwal vincentvdwal changed the title feat: Crepuscule / Shademap feat: crepuscule / shademap Feb 23, 2026
@terraputix
Copy link
Copy Markdown
Collaborator

Maybe this could also be achieved with this package: https://github.com/kikuchan/maplibre-gl-nightlayer
or (at least for the globe view) with the maplibre light source: https://maplibre.org/maplibre-style-spec/light/.

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.

Look into sun cycle overlay ontop of the weather maps

3 participants