It is always not recommended to use Obsolete API, as it involves risk of non-functioning at any point of time. In this post let us see the alternate for Google map obsolete api MapFragment.Map.
In previous post i explained Integration of google map v2 in xamarin android,How to use Google geocode and reverse geocode api in xamarin.android, How to use Google Place API with Autocomplete in Xamarin Android,Integrating Google Account in Xamarin.Android, How to customize AlertDialog in xamarin.Android.
Using the "Map" Property of the "MapFragment" marks with a warning "Android.Gms.Maps.MapFragment.Map is obsolete deprecated".
Instead need to make use of the method GetMapAsync(),which expects implementation of callback object of type IOnMapReadyCallback.
In previous post i explained Integration of google map v2 in xamarin android,How to use Google geocode and reverse geocode api in xamarin.android, How to use Google Place API with Autocomplete in Xamarin Android,Integrating Google Account in Xamarin.Android, How to customize AlertDialog in xamarin.Android.
Using the "Map" Property of the "MapFragment" marks with a warning "Android.Gms.Maps.MapFragment.Map is obsolete deprecated".
Instead need to make use of the method GetMapAsync(),which expects implementation of callback object of type IOnMapReadyCallback.