コード例 #1
0
        private void CenterOnUser()
        {
            if (ViewModel.FirstLocationAcquired && MapControl?.VisibleRegion != null)
            {
                MapControl.MoveToRegion(MapSpan.FromCenterAndRadius(ViewModel.LastUserLocation,
                                                                    MapControl.VisibleRegion.Radius));

                _locationChangedSubscription?.DisposeIfDisposable();
                _locationChangedSubscription = null;
            }
        }