Skip to content

feat: implement fog of world visualization - #23

Open
icaromh wants to merge 6 commits into
mainfrom
implement-fog-of-war
Open

feat: implement fog of world visualization#23
icaromh wants to merge 6 commits into
mainfrom
implement-fog-of-war

Conversation

@icaromh

@icaromh icaromh commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Description

This PR implements the 'Fog of War' rendering mode for synchronized Strava activities.

  • Adds a custom HTML5 Canvas Leaflet Layer (FogOverlayLayer) using the destination-out composite operation.
  • Adds UI controls in the Strava User Menu for toggling Fog Mode, adjusting Darkness, and Brush Size.
  • Branch has been rebased/merged with the latest main.

@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rotas Ready Ready Preview, Comment Jul 11, 2026 10:41pm

- During zoom animation, CSS-transform existing canvas pixels (no redraw)
- Full redraw only on moveend (after zoom/pan completes)
- Use latLngToLayerPoint in layer-coordinate system instead of containerPoint
- Pre-process GeoJSON to L.LatLng arrays to avoid GC churn
- Support retina/HiDPI displays
- Add canvas padding to reduce redraws on short pans
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