Пример #1
0
 private void Events_MapZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     if (IsEnabled)
     {
         _ZoomLevelTextBox.Text = GetZoomLevel();
     }
 }
Пример #2
0
 private void Events_MapViewChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     if (IsEnabled)
     {
         _xCoordTextBox.Text = GetXCoordinate();
         _yCoordTextBox.Text = GetYCoordinate();
     }
 }
Пример #3
0
 internal void DragBehavourChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     if(MapDragBehavourChanged != null) MapDragBehavourChanged(map, args);
 }
Пример #4
0
 private void Events_MapZoomEnded(Map map, MapEventArgs args)
 {
     _ScaleTextBox.Text = GetMapScale(map);
 }
Пример #5
0
 internal void ZoomEnded(Map map, MapEventArgs args)
 {
     _InZoom = false;
     if (MapZoomEnded != null) MapZoomEnded(map, args);
 }
Пример #6
0
 internal void TileSourceChanged(Map map, MapEventArgs args)
 {
     if (MapTileSourceChanged != null) MapTileSourceChanged(map, args);
 }
Пример #7
0
 internal void Loaded(Map map, MapEventArgs args)
 {
     if (MapLoaded != null) MapLoaded(map, args);
 }
Пример #8
0
 void Events_MapViewChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     _ScaleTextBox.Text = GetMapScale(map);
 }
Пример #9
0
 private void ViewChanged(Map map, MapEventArgs args)
 {
     ///RoadWarrior:  This is so breaking encapsulation.
     //base.ViewChanged(map, args);
     infoBox.Hide(true);
 }
Пример #10
0
 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;
     }
 }
Пример #11
0
 private void Events_MapTileSourceChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     SetTileSourceZoomLevels();
 }
Пример #12
0
 private void Events_MapZoomStarted(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     _IsZooming = true;
 }
Пример #13
0
 private void Events_MapZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     _IsZooming = false;
     _UpdateSlider = true;
 }
Пример #14
0
        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;
            }
        }
Пример #15
0
 internal void Loaded(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     if(MapLoaded != null) MapLoaded(map, args);
 }
Пример #16
0
 private void Events_MapZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     _ScaleTextBox.Text = GetMapScale(map);
 }
Пример #17
0
 internal void RotationChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     if(MapRotationChanged != null) MapRotationChanged(map, args);
 }
Пример #18
0
 private void Events_MapRotationChanged(Map map, MapEventArgs args)
 {
     rotationGlobeGridAngle.Angle = map.RotationAngle;
 }
Пример #19
0
 internal void ZoomStarted(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     _InZoom = true;
     if(MapZoomStarted != null) MapZoomStarted(map, args);
 }
Пример #20
0
 internal void RotationChanged(Map map, MapEventArgs args)
 {
     if (MapRotationChanged != null) MapRotationChanged(map, args);
 }
Пример #21
0
 internal void ZoomEnded(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     _InZoom = false;
     if(MapZoomEnded != null) MapZoomEnded(map, args);
 }
Пример #22
0
 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);
     }
 }
Пример #23
0
 internal void TileSourceChanged(BIT.AVL.Silver.Map.Map map, MapEventArgs args)
 {
     if(MapTileSourceChanged != null) MapTileSourceChanged(map, args);
 }
Пример #24
0
 internal void ZoomStarted(Map map, MapEventArgs args)
 {
     _InZoom = true;
     if (MapZoomStarted != null) MapZoomStarted(map, args);
 }
Пример #25
0
 void Events_MapViewChanged(Map map, MapEventArgs args)
 {
     _ScaleTextBox.Text = GetMapScale(map);
 }