public Magnifier_MapTool()
 {
   //Only enable for 2D view
   if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     return;
   mapControlWindow = new MapControlWindow();
   mapControlWindow.Show();
 }
Пример #2
0
 protected override Task OnToolDeactivateAsync(bool hasMapViewChanged)
 {
     if (mapControlWindow != null)
     {
         mapControlWindow.Close();
         mapControlWindow = null;
     }
     return(base.OnToolDeactivateAsync(hasMapViewChanged));
 }
Пример #3
0
 protected override Task OnToolActivateAsync(bool active)
 {
     if (mapControlWindow == null && MapView.Active.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         mapControlWindow = new MapControlWindow();
         mapControlWindow.Show();
     }
     return(base.OnToolActivateAsync(active));
 }
 protected override Task OnToolDeactivateAsync(bool hasMapViewChanged)
 {
   if (mapControlWindow != null)
   {
     mapControlWindow.Close();
     mapControlWindow = null;
   }
   return base.OnToolDeactivateAsync(hasMapViewChanged);
 }
 protected override Task OnToolActivateAsync(bool active)
 {
   if (mapControlWindow == null && MapView.Active.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.Map)
   {
     mapControlWindow = new MapControlWindow();
     mapControlWindow.Show();
   }
   return base.OnToolActivateAsync(active);
 }
Пример #6
0
 public Magnifier_MapTool()
 {
     //Only enable for 2D view
     if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         return;
     }
     mapControlWindow = new MapControlWindow();
     mapControlWindow.Show();
 }
Пример #7
0
 public Magnifier_MapTool()
 {
     //Only enable for 2D view
     if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         return;
     }
     mapControlWindow = new MapControlWindow()
     {
         Owner = FrameworkApplication.Current.MainWindow
     };
     mapControlWindow.Show();
 }