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
|
|
@ -4,6 +4,7 @@ import 'package:flutter_redux/flutter_redux.dart';
|
|||
import 'package:latlong2/latlong.dart';
|
||||
|
||||
import 'colors.dart';
|
||||
import 'compassMapPlugin.dart';
|
||||
import 'customBottomAppBar.dart';
|
||||
import 'generated/i18n.dart';
|
||||
import 'mainDrawer.dart';
|
||||
|
|
@ -84,6 +85,7 @@ class MonitoredAreasPage extends StatelessWidget {
|
|||
subdomains: ['a', 'b', 'c', 'd'],
|
||||
userAgentPackageName:
|
||||
'com.example.fires_flutter'),
|
||||
new CompassMapPluginWidget(),
|
||||
new PolylineLayer(
|
||||
polylines: view.monitoredAreas,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue