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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feature
Add a map-orientation control for mobile devices, including Android phones, iPhones, and tablets.
UI
assets/icons/north-pointer.svgasset for the button.Behavior
Implemented in
f4e5534. Verified on Android over HTTPS: device-compass orientation works correctly in Google Chrome and Firefox.