Exemple #1
0
 private async void OnMap(object sender, EventArgs args)
 {
     try
     {
         locationDialog = new LocationDialog(this);
         await PopupNavigation.Instance.PushAsync(locationDialog, true);
     }
     catch (Exception ex)
     {
     }
 }
Exemple #2
0
        public async void OnEnableLocation()
        {
            new GeolocationManager(this).TurnOnLocation();

            //Subscribe to geolocation again
            if (locationDialog == null)
            {
                locationDialog = new LocationDialog(this);
            }

            await PopupNavigation.Instance.PushAsync(locationDialog, true);
        }