Ejemplo n.º 1
0
 void OnMyLocationChanged(object sender, GoogleMap.MyLocationChangeEventArgs e)
 {
     if (RequestedShowUserLocation)
     {
         InternalMoveToRegion(MapRegion.FromPositions(new List <Position> {
             new Position(e.Location.Latitude, e.Location.Longitude)
         }), true, 16);
         ResetShowUserLocation();
     }
 }
Ejemplo n.º 2
0
        public override void DidUpdateUserLocation(MKMapView mapView, MKUserLocation userLocation)
        {
            if (mapView.ShowsUserLocation)
            {
                if (_renderer.RequestedShowUserLocation)
                {
                    _renderer.MoveToRegion(MapRegion.FromPositions(new List <Position> {
                        new Position(userLocation.Coordinate.Latitude,
                                     userLocation.Coordinate.Longitude)
                    }), false);

                    _renderer.ResetShowUserLocation();
                }
            }
        }