private Task OnMapViewChangedAsync(Byte zoomLevel, GeoPoint center, Object manuallyTriggeredChangeParameter) { var mapViewChangedEventArgs = new MapViewChangedEventArgs(zoomLevel, center, manuallyTriggeredChangeParameter); MapViewChanged(mapViewChangedEventArgs); return(mapViewChangedEventArgs.WaitCompletionAsync()); }
/// <summary> /// Fires when map animation is complete following a call to SetView. This does NOT fire when the user zooms or pans manually. /// </summary> async void TheMap_ViewChanged(object sender, MapViewChangedEventArgs e) { // reset progress indicators if (_apiMonitor != null) { _apiMonitor.IsExecuting = false; } // unregister the handler TheMap.ViewChanged -= TheMap_ViewChanged; // refresh the map await Refresh(); }
void map_ViewChanged(object sender, MapViewChangedEventArgs e) { (sender as Map).ViewChanged -= map_ViewChanged; var map = Control; var mapTile = (MapTile)Element; MapPinData data = tapMarker.DataContext as MapPinData; var centerLocation = new System.Device.Location.GeoCoordinate(Math.Round(map.Center.Latitude, 4), Math.Round(map.Center.Longitude, 4)); var pinLocation = new System.Device.Location.GeoCoordinate(Math.Round(data.Latitude, 4), Math.Round(data.Longitude, 4)); if (centerLocation == pinLocation) { mapTile.ShowPinDetailInfo(data.Id); } }
private static void MyMap_ViewChanged(object sender, MapViewChangedEventArgs e) { ViewChanging = false; }
private void OnMapViewChangeEnded(object sender, MapViewChangedEventArgs e) { this.UpdateMapView(); }
/// <summary> /// Fires when map animation is complete following a call to SetView. This does NOT fire when the user zooms or pans manually. /// </summary> async void TheMap_ViewChanged(object sender, MapViewChangedEventArgs e) { // reset progress indicators if (_apiMonitor != null) _apiMonitor.IsExecuting = false; // unregister the handler TheMap.ViewChanged -= TheMap_ViewChanged; // refresh the map await Refresh(); }
private void map1_ViewChanged_1(object sender, MapViewChangedEventArgs e) { Debug.WriteLine("map1_ViewChanged_1"); }
void map_ViewChanged(object sender, MapViewChangedEventArgs e) { (sender as Map).ViewChanged -= map_ViewChanged; var map = Control; var mapTile = (MapTile)Element; MapPinData data = tapMarker.DataContext as MapPinData; var centerLocation = new System.Device.Location.GeoCoordinate(Math.Round(map.Center.Latitude, 4), Math.Round(map.Center.Longitude, 4)); var pinLocation = new System.Device.Location.GeoCoordinate(Math.Round(data.Latitude, 4), Math.Round(data.Longitude, 4)); if (centerLocation == pinLocation) mapTile.ShowPinDetailInfo(data.Id); }
private void map1_ViewChanged_1(object sender, MapViewChangedEventArgs e) { Debug.WriteLine("map1_ViewChanged_1"); }
void Map_ViewChanged(object sender, MapViewChangedEventArgs mapViewChangedEventArgs) { View_Lo = Map.Center.Longitude ; View_La = Map.Center.Latitude ; View_ZoomLevel = Map.ZoomLevel ; }