Map centres on Zwolle rather than connected device's location #4

Closed
opened 2026-10-05 05:05:12 +02:00 by adam · 1 comment
Owner

The device has a location as shown in the device panel however the map shows a different location.

Firefox 147 also Chromium

The device has a location as shown in the device panel however the map shows a different location. Firefox 147 also Chromium <!-- github-sync-id:3945019433 -->
adam closed this issue 2026-10-05 05:05:12 +02:00
Author
Owner

Fixed in v1.9.2.

Root cause: hardcoded coordinates (52.5, 6.0) used as both the initial map centre and the fallback when the device has no GPS fix. These numbers were scattered across two files (map_panel.py and route_page.py) with no single point of configuration.

Changes:

  • Added DEFAULT_MAP_CENTER and DEFAULT_MAP_ZOOM constants to config.py
  • map_panel.py — initial Leaflet centre now uses config constants
Fixed in v1.9.2. Root cause: hardcoded coordinates (52.5, 6.0) used as both the initial map centre and the fallback when the device has no GPS fix. These numbers were scattered across two files (map_panel.py and route_page.py) with no single point of configuration. Changes: - Added DEFAULT_MAP_CENTER and DEFAULT_MAP_ZOOM constants to config.py - map_panel.py — initial Leaflet centre now uses config constants <!-- github-comment-id:3908753342 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshcore-gui#4