mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 00:14:42 +01:00
Make OSM map less likely to rotate
This commit is contained in:
parent
752360daf0
commit
dda79dadcc
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ class _OsmInteractiveMapState extends State<OsmInteractiveMap> {
|
||||||
initialCenter: widget.initialPosition?.toLatLng() ?? const LatLng(0, 0),
|
initialCenter: widget.initialPosition?.toLatLng() ?? const LatLng(0, 0),
|
||||||
initialZoom: max(2.5, widget.initialZoom ?? 2.5),
|
initialZoom: max(2.5, widget.initialZoom ?? 2.5),
|
||||||
minZoom: 2.5,
|
minZoom: 2.5,
|
||||||
|
interactionOptions: const InteractionOptions(
|
||||||
|
enableMultiFingerGestureRace: true,
|
||||||
|
pinchZoomThreshold: 0.25,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
TileLayer(
|
TileLayer(
|
||||||
|
|
Loading…
Add table
Reference in a new issue