amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 346 forks source link

Not showing Pins in iOS #678

Closed zank-stlab closed 4 years ago

zank-stlab commented 4 years ago

VERSIONS

PLATFORMS

ACTUAL BEHAVIOR

On Android maps everything is fine. On iOS the map (by google) is showing correctly but there are no pins and the method InitialCameraUpdate is not working.

here a list of my iOS nuget packages:

<PackageReference Include="Microsoft.AppCenter">
    <Version>2.6.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Push">
    <Version>2.6.1</Version>
</PackageReference>
<PackageReference Include="Plugin.PushNotification">
    <Version>2.1.18</Version>
</PackageReference>
<PackageReference Include="Xamarin.Build.Download">
    <Version>0.4.11</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.947036" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.0" />
<PackageReference Include="Newtonsoft.Json">
    <Version>12.0.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms.GoogleMaps">
    <Version>3.3.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms.Visual.Material">
    <Version>4.2.0.709249</Version>
</PackageReference>
<PackageReference Include="Xamarin.Google.iOS.Maps">
    <Version>3.5.0</Version>
</PackageReference>
<PackageReference Include="ZXing.Net.Mobile.Forms">
    <Version>2.4.1</Version>
</PackageReference>
<PackageReference Include="ZXing.Net.Mobile">
    <Version>2.4.1</Version>
</PackageReference>
<PackageReference Include="Rollbar">
    <Version>3.5.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.IQKeyboardManager">
    <Version>1.4.1</Version>
</PackageReference>
<PackageReference Include="Plugin.Permissions">
    <Version>3.0.0.12</Version>
</PackageReference>
<PackageReference Include="MonkeyCache.LiteDB">
    <Version>1.3.0</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.Connectivity">
    <Version>3.2.0</Version>
</PackageReference>
<PackageReference Include="Plugin.Multilingual">
    <Version>1.0.2</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.DeviceInfo">
    <Version>4.1.1</Version>
</PackageReference>

I also have these warnings:

The referenced component 'C:\Users\xxx\AppData\Local\XamarinBuildDownloadCache\GMps-3.5.0\Base\Frameworks\GoogleMapsBase.framework' could not be found. xxx.iOS

The referenced component 'C:\Users\xxx\AppData\Local\XamarinBuildDownloadCache\GMps-3.5.0\Maps\Frameworks\GoogleMaps.framework' could not be found. xxx.iOS

The referenced component 'C:\Users\xxx\AppData\Local\XamarinBuildDownloadCache\GMps-3.5.0\Maps\Frameworks\GoogleMapsCore.framework' could not be found. xxx.iOS             

Thanks

KevinHu-au commented 4 years ago

Hi Buddy,

I got the exactly opposite issue. Everything works fine on iOS, but on Android, I can see the map, but no pins and polylines are added to the map.

For the map icon, I use BitmapDescriptorFactory.FromView(pinView) method to have the custom map pin view from Xamarin.Forms project. But the polyline is just quite standard.

I guess I am not using the control properly in some places. Not sure what is your issue.