Make OSM map less likely to rotate

This commit is contained in:
Ming Ming 2024-09-18 00:46:27 +08:00
parent 752360daf0
commit dda79dadcc

View file

@ -70,6 +70,10 @@ class _OsmInteractiveMapState extends State<OsmInteractiveMap> {
initialCenter: widget.initialPosition?.toLatLng() ?? const LatLng(0, 0),
initialZoom: max(2.5, widget.initialZoom ?? 2.5),
minZoom: 2.5,
interactionOptions: const InteractionOptions(
enableMultiFingerGestureRace: true,
pinchZoomThreshold: 0.25,
),
),
children: [
TileLayer(