private void Events_MapZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if (IsEnabled) { _ZoomLevelTextBox.Text = GetZoomLevel(); } }
private void Events_MapViewChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if (IsEnabled) { _xCoordTextBox.Text = GetXCoordinate(); _yCoordTextBox.Text = GetYCoordinate(); } }
internal void DragBehavourChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if(MapDragBehavourChanged != null) MapDragBehavourChanged(map, args); }
private void Events_MapZoomEnded(Map map, MapEventArgs args) { _ScaleTextBox.Text = GetMapScale(map); }
internal void ZoomEnded(Map map, MapEventArgs args) { _InZoom = false; if (MapZoomEnded != null) MapZoomEnded(map, args); }
internal void TileSourceChanged(Map map, MapEventArgs args) { if (MapTileSourceChanged != null) MapTileSourceChanged(map, args); }
internal void Loaded(Map map, MapEventArgs args) { if (MapLoaded != null) MapLoaded(map, args); }
void Events_MapViewChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { _ScaleTextBox.Text = GetMapScale(map); }
private void ViewChanged(Map map, MapEventArgs args) { ///RoadWarrior: This is so breaking encapsulation. //base.ViewChanged(map, args); infoBox.Hide(true); }
private void Events_MapDragBehavourChanged(Map map, MapEventArgs args) { ClearDrawLeader(); if (map.DragMode == Map.DragBehavior.Draw) { ClearShapes(); map.Events.EnableMouseClicks = true; map.Events.EnableMouseWheel = true; map.Events.EnableMapZoom = true; map.Events.EnableKeyboard = false; map.Events.EnableMapZoomOnDoubleClick = false; } }
private void Events_MapTileSourceChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { SetTileSourceZoomLevels(); }
private void Events_MapZoomStarted(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { _IsZooming = true; }
private void Events_MapZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { _IsZooming = false; _UpdateSlider = true; }
private void Events_MapDragBehavourChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if (map.DragMode == BIT.AVL.Silver.Map.Map.DragBehavior.Pan || map.DragMode == BIT.AVL.Silver.Map.Map.DragBehavior.Select) { map.Events.EnableMouseWheel = true; map.Events.EnableKeyboard = true; map.Events.EnableMapZoom = true; map.Events.EnableMouseClicks = true; //map.Events.Enable = true; } }
internal void Loaded(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if(MapLoaded != null) MapLoaded(map, args); }
private void Events_MapZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { _ScaleTextBox.Text = GetMapScale(map); }
internal void RotationChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if(MapRotationChanged != null) MapRotationChanged(map, args); }
private void Events_MapRotationChanged(Map map, MapEventArgs args) { rotationGlobeGridAngle.Angle = map.RotationAngle; }
internal void ZoomStarted(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { _InZoom = true; if(MapZoomStarted != null) MapZoomStarted(map, args); }
internal void RotationChanged(Map map, MapEventArgs args) { if (MapRotationChanged != null) MapRotationChanged(map, args); }
internal void ZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { _InZoom = false; if(MapZoomEnded != null) MapZoomEnded(map, args); }
internal void ViewChanged(Map map, MapEventArgs args) { //Note this operation exists to eliminate the high volume of insignificant updates from MSI.ViewUpdated //Uses the sum of squares to determine distance moved. //The MSI woble effect seeems to occur at ~ a .03% of the logical display. //So seeting the change tolerance at .05 eliminates much of the woble effect especially post zoom. double distLogChange = Math.Sqrt(Math.Pow(_Map.LogicalOrigin.X - _PriorOrigin.X, 2) + Math.Pow(_Map.LogicalOrigin.Y - _PriorOrigin.Y, 2)); double changeSignificance = 100 * distLogChange / _Map.MapViewLogicalSize.Width; if (changeSignificance > ChangeSignificanceThreshold) { _PriorOrigin = _Map.LogicalOrigin; RaiseZoomChanged(map, map.ZoomLevel); if (MapViewChanged != null) MapViewChanged(map, args); } }
internal void TileSourceChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args) { if(MapTileSourceChanged != null) MapTileSourceChanged(map, args); }
internal void ZoomStarted(Map map, MapEventArgs args) { _InZoom = true; if (MapZoomStarted != null) MapZoomStarted(map, args); }
void Events_MapViewChanged(Map map, MapEventArgs args) { _ScaleTextBox.Text = GetMapScale(map); }