Add device-compass map orientation for mobile #8

Closed
opened 2026-07-22 05:57:22 +00:00 by jfig · 1 comment
Owner

Feature

Add a map-orientation control for mobile devices, including Android phones, iPhones, and tablets.

UI

  • Add a button to the top-right map controls.
  • Use the existing assets/icons/north-pointer.svg asset for the button.

Behavior

  • When pressed, align the displayed map with real north based on the device orientation/compass heading.
  • Keep the map orientation synchronized as the user rotates the device.
  • Handle unavailable or denied orientation permissions gracefully, including the iOS permission flow where required.
  • Provide an accessible name and active state for the control.
### Feature Add a map-orientation control for mobile devices, including Android phones, iPhones, and tablets. ### UI - Add a button to the top-right map controls. - Use the existing `assets/icons/north-pointer.svg` asset for the button. ### Behavior - When pressed, align the displayed map with real north based on the device orientation/compass heading. - Keep the map orientation synchronized as the user rotates the device. - Handle unavailable or denied orientation permissions gracefully, including the iOS permission flow where required. - Provide an accessible name and active state for the control.
Author
Owner

Implemented in f4e5534. Verified on Android over HTTPS: device-compass orientation works correctly in Google Chrome and Firefox.

Implemented in f4e5534. Verified on Android over HTTPS: device-compass orientation works correctly in Google Chrome and Firefox.
jfig closed this issue 2026-07-22 09:43:21 +00:00
Sign in to join this conversation.