예제 #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);
 }