Skip to content

Commit e6516fa

Browse files
committed
- ios: add camerachanged event
1 parent 1fd7843 commit e6516fa

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<PackageReference Include="Dependencies.Gradle" Version="8.6.0.1" />
9191
</ItemGroup>
9292
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
93-
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.5.1" />
93+
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.5.1.1" />
9494
<PackageReference Include="MapboxMaps.iOS" Version="11.5.1" />
9595
</ItemGroup>
9696
<ProjectExtensions>

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

+11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ namespace MapboxMaui;
1515

1616
public static partial class AdditionalExtensions
1717
{
18+
internal static CameraOptions ToX(this TMBCameraState state)
19+
{
20+
return new CameraOptions
21+
{
22+
Bearing = (float?)state.Bearing,
23+
Center = state.Center.ToMapPosition(),
24+
Padding = state.Padding.ToThickness(),
25+
Pitch = (float?)state.Pitch.Value,
26+
Zoom = (float?)state.Zoom.Value,
27+
};
28+
}
1829
internal static TMBPanMode ToNative(this PanMode panMode)
1930
{
2031
return panMode switch

src/qs/MapboxMauiQs/MapboxMauiQs.csproj

+4-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.5.1" />
108+
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.5.1.1" />
109109
<PackageReference Include="MapboxMaps.iOS" Version="11.5.1" />
110110

111111
<Compile Include="..\..\libs\Mapbox.Maui\Platforms\iOS\**\**\*.cs">
@@ -128,6 +128,9 @@
128128
<Target Name="DisplayMessages" BeforeTargets="PrepareForILLink">
129129
<Message Text="Project File Name = $(Configuration)|$(TargetFramework)|$(Platform)" />
130130
</Target>
131+
<!-- <PropertyGroup Condition="$(TargetFramework.Contains('-ios'))">
132+
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
133+
</PropertyGroup> -->
131134
<ProjectExtensions>
132135
<MonoDevelop>
133136
<Properties>

0 commit comments

Comments
 (0)