private async void MyMapOnTargetViewChanged(object sender, TargetViewChangedEventArgs targetViewChangedEventArgs) { if (_positionChangeDetectionActive) { _positionChangeDetectionActive = false; var bounds = myMap.TargetBounds; await ViewModel.DownloadInfoAsync(bounds.South, bounds.West, bounds.North, bounds.East); } }
private void MyMapOnTargetViewChanged(object sender, TargetViewChangedEventArgs targetViewChangedEventArgs) { var bounds = myMap.TargetBounds; ViewModel.SetLongLatRectangle(bounds.South, bounds.West, bounds.North, bounds.East); }