Xamarin.Forms.Maps
The nuget Fabulous.XamarinForms.Maps
implements an extension for the types Map and Pin.
To use Fabulous.XamarinForms.Maps
, you must
Add a reference to
Fabulous.XamarinForms.Maps
across your whole solution.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)
toMainActivity.fs
and add both and API key anduses-permission
toAndroidManifest.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