Xamarin.Forms.Maps

The nuget Fabulous.XamarinForms.Maps implements an extension for the types Map and Pin.

To use Fabulous.XamarinForms.Maps, you must

  1. Add a reference to Fabulous.XamarinForms.Maps across your whole solution.

  2. Additionally follow the instructions to initialize Xamarin.Forms Maps. For example, on Android you must enable Google Play servies, add a call to Xamarin.FormsMaps.Init(this, bundle) to MainActivity.fs and add both and API key and uses-permission to AndroidManifest.xml.

After these steps you can use maps in your view function as follows:

Next, a map with requested region around Timbuktu:

Next, a map with two pins for Paris and London:

Last updated