feat: add compass button to reset map rotation to north
- Add new CompassMapPluginWidget for map north alignment control - Position compass button at top-right of maps - Reset rotation to 0° while maintaining center and zoom level - Improve UX by allowing users to easily return to north orientation - Integrate compass into both genericMap and monitoredAreas pages
This commit is contained in:
parent
14b558340d
commit
f39bdbfaef
3 changed files with 45 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import 'package:share_plus/share_plus.dart';
|
|||
|
||||
import 'attributionMapPlugin.dart';
|
||||
import 'colors.dart';
|
||||
import 'compassMapPlugin.dart';
|
||||
import 'customMoment.dart';
|
||||
import 'dummyMapPlugin.dart';
|
||||
import 'fireMarkType.dart';
|
||||
|
|
@ -223,6 +224,7 @@ class _genericMapState extends State<genericMap> {
|
|||
globals.isDevelopment
|
||||
? new ZoomMapPluginWidget()
|
||||
: new DummyMapPluginWidget(),
|
||||
new CompassMapPluginWidget(),
|
||||
new MarkerLayer(
|
||||
markers: buildMarkers(
|
||||
mapState.status == FireMapStatus.viewFireNotification &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue