Reputation:
I need use Xamarin.GooglePlayServices.Maps in my Xamarin.Forms App. But I wrote all my pages in shared project (for example App) and I can instal Xamarin.GooglePlayServices.Maps only in android project (App.Android). Can I use this pakage (Xamarin.GooglePlayServices.Maps) in my shared project (App)?
Upvotes: 0
Views: 726
Reputation: 106
I'd suggest you as @HeroesVII said you should try Xamarin.Forms.Maps, is more lightweight and simplistic. Either way if you want to stick to Xamarin.GooglePlayServices.Maps there shouldn't be any problem with it being in the standard project.
You can find and example here in this repo I created about two days ago.
Upvotes: 0
Reputation: 10958
Like HeroesVII said, install the Xamarin.Forms.Maps
for Xamarin.Forms. A code sample below for your reference.
The configuration process for displaying and interacting with a map on Android of Xamarin.Forms is:
For mroe details of steps, you could check the MS docs.
You could download the source file from the link below. https://learn.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/workingwithmaps/
Upvotes: 0
Reputation: 148
Download "Xamarin.Forms.Maps" instead. It have Dependencies to "Xamarin.GooglePlayService.Maps" and more.
Upvotes: 1