sw-fe/src
Your Name 2c3722146a Fix map center drift by using geographic center instead of bounds center
Problem: Map position drifted north/higher on each reload because
bounds.getCenter() returns a visually offset center when pitch is applied

Solution:
- Use map.getCenter() for accurate geographic center (not affected by pitch)
- Save and restore bearing (rotation) along with pitch
- Store: lat, lon, zoom, pitch, bearing

Before: bounds.getCenter() → visual center (offset by 3D tilt)
After: map.getCenter() → true geographic center

This ensures the map returns to the exact same position after reload,
regardless of the 3D tilt angle.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-22 23:05:44 -05:00
..
api marxhe 2025-12-19 20:47:42 -05:00
assets yeah 2025-12-08 23:22:58 +00:00
auth update frontend 2025-12-21 20:01:42 -05:00
components Fix map center drift by using geographic center instead of bounds center 2025-12-22 23:05:44 -05:00
lib blehxx 2025-12-19 17:44:36 -05:00
services update frontend 2025-12-20 22:29:35 -05:00
styles Improve map UX: compact modal, visible crosshair, smart marker overlap 2025-12-22 22:44:50 -05:00
theme Add image upload and category icons to map cards 2025-12-22 22:36:20 -05:00
App.jsx update frontend 2025-12-22 02:16:28 -05:00
main.jsx update frontend 2025-12-21 20:26:17 -05:00
pwaInstall.js update frontend 2025-12-21 19:32:19 -05:00