Exemplo n.º 1
0
 private void Map_MyLocationButtonClicked(object sender, MyLocationButtonClickedEventArgs e)
 {
     if (!Compass.IsMonitoring)
     {
         Compass.Start(SensorSpeed.UI);
     }
 }
Exemplo n.º 2
0
        private async void OnMapMyLocationButtonClicked(object sender, MyLocationButtonClickedEventArgs e)
        {
            var position = await LocationService.GetCurrentLocation(this.ViewModel);

            if (position == null)
            {
                return;
            }

            this.MyMap.MoveToRegion(
                MapSpan.FromCenterAndRadius(
                    new Position(
                        position.Latitude,
                        position.Longitude),
                    Distance.FromMeters(
                        MAP_SPAN_RADIUS)));
        }
 private void OnMyLocationButtonClicked(object sender, MyLocationButtonClickedEventArgs myLocationButtonClickedEventArgs)
 {
     Command?.Execute(myLocationButtonClickedEventArgs);
 }
Exemplo n.º 4
0
 private void Mapa_MyLocationButtonClicked1(object sender, MyLocationButtonClickedEventArgs e)
 {
     ViewModel.InitPinsCommand.Execute(null);
     Plugin.Toast.CrossToastPopUp.Current.ShowToastMessage("Estás aquí");
 }
Exemplo n.º 5
0
 private void Mapa_MyLocationButtonClicked(object sender, MyLocationButtonClickedEventArgs e)
 {
 }