question

DimChris avatar image
0 Votes"
DimChris asked ·

Xamarin forms google maps in Android and iOS

Hello developers, i am using map control. But in iOS i get the maps from apple and not from google. Is there any library? I have already used Xamarin.Forms.GoogleMaps.V2. But i can's install Xamarin.GooglePlayServices.Maps. Any suggestions?

dotnet-xamarinforms
· 4
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I used this in my previous App .

To go to an adress in Google Maps


https://xamgirl.com/quick-tip-launching-google-maps-in-xamarin-forms/

0 Votes 0 ·
DimChris avatar image DimChris Borisoprit-6789 ·

Thank you. I also need to use polygons, i dont know if xamarin essential support this

0 Votes 0 ·

I have already used Xamarin.Forms.GoogleMaps.V2. But i can's install Xamarin.GooglePlayServices.Maps

Hi, DimChris. The Xamarin.Forms.GoogleMaps.V2 package supports to work on iOS, it requires to get the API Key from Google Maps API for iOS then insert Init of AppDelegate.cs. But the Xamarin.GooglePlayServices.Maps nuget only works for Android, we cannot use it on iOS platform.


0 Votes 0 ·

Thank you Jarvan.I have tried it but i am taking the following warnings on iOS. Is it safe to ignore them? If i delete references, they appear again each time project is open.

75696-screenshot-1.png


75697-screenshot-2.png



Also another question what Xamarin.GooglePlayServices.Maps is stand for? Is it necessery? I need to show only a map and create a pin and a polygon.

0 Votes 0 ·
screenshot-1.png (23.9 KiB)
screenshot-2.png (17.9 KiB)

1 Answer

JarvanZhang-MSFT avatar image
1 Vote"
JarvanZhang-MSFT answered ·

Hello,​

Welcome to our Microsoft Q&A platform!

what Xamarin.GooglePlayServices.Maps is stand for? Is it necessery? I need to show only a map and create a pin and a polygon

If you only want to display the map on each platform, it's not necessary to install the google map package on iOS. Try using the Xamarin.Forms Map control which will use the native map control for each platform.

Check the doc: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/map/map

Best Regards,

Jarvan Zhang



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I dont have experience with apple' maps. I will give it a try. But i believe that google maps are more updated. Correct me if i am wrong

0 Votes 0 ·

Waiting for your update. If you are facing some issues while implementing, try to post the particular error with the corresponding codes here.

1 Vote 1 ·