Skip to content

Commit

Permalink
disable rotation on map
Browse files Browse the repository at this point in the history
  • Loading branch information
LGro committed May 29, 2024
1 parent a2ea6bc commit d1050ef
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/ui/map/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ class MapPage extends StatelessWidget {
@override
Widget build(BuildContext context) => FlutterMap(
options: const MapOptions(
// TODO: Pick reasonable center without requiring all markers first; e.g. based on profile contact locations or current GPS
initialCenter: LatLng(50.5, 30.51),
initialZoom: 3,
maxZoom: 15,
minZoom: 1,
),
// TODO: Pick reasonable center without requiring all markers first; e.g. based on profile contact locations or current GPS
initialCenter: LatLng(50.5, 30.51),
initialZoom: 3,
maxZoom: 15,
minZoom: 1,
interactionOptions: InteractionOptions(
flags: InteractiveFlag.pinchZoom | InteractiveFlag.drag)),
children: <Widget>[
TileLayer(
urlTemplate: (mapboxToken().isEmpty)
Expand Down

0 comments on commit d1050ef

Please sign in to comment.