Using Google Maps on Xamarin.Forms for Android

So, we need to create an application that displays a map, and we are currently using Xamarin.Forms to integrate it. However, we will not use Xamarin.Forms.Maps, since we must use the Google Maps API for iOS, and not our own MapKit map.

My question is: how do I integrate this component https://components.xamarin.com/view/googleplayservices-maps into Xamarin.Forms?

+5
source share
2 answers

Read this guide https://docs.xamarin.com/guides/xamarin-forms/user-interface/map/

The management card uses your card for each platform.

Android - Google Maps

iOS - Apple Maps

Windows Phone - Bing Maps

For each card, you must build a card to add a key card, all letters, good luck!

0
source

You can enter a Google map (for Android or iOS) in the Xamarin.Forms view.

Example in Android:

public class AndroidMapRenderer : ViewRenderer { protected override void OnElementChanged(ElementChangedEventArgs<View> e) { base.OnElementChanged(e); var mapView = new Android.Gms.Maps.MapView(Context); SetNativeControl(mapView); } } 

This method is a "custom renderer".

Read this data:

0
source

Source: https://habr.com/ru/post/1239763/


All Articles