Skip to content

Commit d03cc52

Browse files
committed
- 11.4.0-alpha02
1 parent 9a044b5 commit d03cc52

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

src/libs/Mapbox.Maui/Mapbox.Maui.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<RepositoryUrl>https://github.com/tuyen-vuduc/mapbox-maui</RepositoryUrl>
5454
<PackageProjectUrl>https://mapbox.tuyen-vuduc.tech</PackageProjectUrl>
5555
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
56-
<PackageVersion>11.4.0-alpha01</PackageVersion>
56+
<PackageVersion>11.4.0-alpha02</PackageVersion>
5757
<PackageReadmeFile>README.md</PackageReadmeFile>
5858
<PackageLicenseFile>LICENSE</PackageLicenseFile>
5959
<PackageIcon>tv-mapbox.png</PackageIcon>
@@ -80,7 +80,7 @@
8080
<PackageReference Include="Xamarin.Kotlin.StdLib.Common" Version="1.9.23.3" PrivateAssets="none" />
8181
</ItemGroup>
8282
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
83-
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.4.0.1" />
83+
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.4.0.2" />
8484
<PackageReference Include="MapboxMaps.iOS" Version="11.4.0.1" />
8585
</ItemGroup>
8686
<ItemGroup>

src/libs/Mapbox.Maui/Platforms/iOS/MapboxViewHandler.cs

+16-19
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,22 @@ private static void HandleGestureSettingsChanged(MapboxViewHandler handler, IMap
1919
var mapView = handler.PlatformView.MapView;
2020
if (mapView == null) return;
2121

22-
var gestures = mapView.Gestures().GestureOptions();
23-
24-
gestures.DoubleTapToZoomInEnabled = view.GestureSettings.DoubleTapToZoomInEnabled;
25-
gestures.DoubleTouchToZoomOutEnabled = view.GestureSettings.DoubleTouchToZoomOutEnabled;
26-
gestures.FocalPoint = view.GestureSettings.FocalPoint?.ToNSValue();
27-
//gestures.IncreasePinchToZoomThresholdWhenRotating = view.GestureSettings.IncreasePinchToZoomThresholdWhenRotating;
28-
//gestures.IncreaseRotateThresholdWhenPinchingToZoom = view.GestureSettings.IncreaseRotateThresholdWhenPinchingToZoom;
29-
gestures.PanEnabled = view.GestureSettings.PinchToZoomEnabled;
30-
//gestures.PinchToZoomDecelerationEnabled = view.GestureSettings.PinchToZoomDecelerationEnabled;
31-
gestures.PinchZoomEnabled = view.GestureSettings.PinchToZoomEnabled;
32-
gestures.PitchEnabled = view.GestureSettings.PitchEnabled;
33-
gestures.QuickZoomEnabled = view.GestureSettings.QuickZoomEnabled;
34-
//gestures.RotateDecelerationEnabled = view.GestureSettings.RotateDecelerationEnabled;
35-
gestures.RotateEnabled = view.GestureSettings.RotateEnabled;
36-
//gestures.ScrollDecelerationEnabled = view.GestureSettings.ScrollDecelerationEnabled;
37-
//gestures.ScrollEnabled = view.GestureSettings.ScrollEnabled;
38-
gestures.PanMode = view.GestureSettings.ScrollMode.ToNative();
39-
gestures.SimultaneousRotateAndPinchZoomEnabled = view.GestureSettings.SimultaneousRotateAndPinchToZoomEnabled;
40-
gestures.PanDecelerationFactor = view.GestureSettings.PanDecelerationFactor;
22+
var gestureOptions = new TMBGestureOptions(
23+
panEnabled: view.GestureSettings.PinchScrollEnabled,
24+
pinchEnabled: false,
25+
rotateEnabled: view.GestureSettings.RotateEnabled,
26+
simultaneousRotateAndPinchZoomEnabled: view.GestureSettings.SimultaneousRotateAndPinchToZoomEnabled,
27+
pinchZoomEnabled: view.GestureSettings.PinchToZoomEnabled,
28+
pinchPanEnabled: false,
29+
pitchEnabled: view.GestureSettings.PitchEnabled,
30+
doubleTapToZoomInEnabled: view.GestureSettings.DoubleTapToZoomInEnabled,
31+
doubleTouchToZoomOutEnabled: view.GestureSettings.DoubleTouchToZoomOutEnabled,
32+
quickZoomEnabled: view.GestureSettings.QuickZoomEnabled,
33+
panDecelerationFactor: UIScrollView.DecelerationRateNormal,
34+
panMode: view.GestureSettings.ScrollMode.ToNative(),
35+
focalPoint: view.GestureSettings.FocalPoint?.ToNSValue()
36+
);
37+
mapView.Gestures().GestureOptions = gestureOptions;
4138
}
4239

4340
private static void HandleLightChanged(MapboxViewHandler handler, IMapboxView view)

src/qs/MapboxMauiQs/MapboxMauiQs.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
</Compile>
106106
</ItemGroup>
107107
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
108-
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.4.0.1" />
108+
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.4.0.2" />
109109
<PackageReference Include="MapboxMaps.iOS" Version="11.4.0.1" />
110110

111111
<Compile Include="..\..\libs\Mapbox.Maui\Platforms\iOS\**\**\*.cs">

0 commit comments

Comments
 (0)