コード例 #1
0
 void iMSMap1_MapReady(ZDIMS.Event.IMSMapEvent e)
 {
     if (!DesignerProperties.IsInDesignTool)
     {
         if (this.busCtl == null)
         {
             //初始化公交换乘控件,传入相关参数
             busCtl               = new BusAnalyse(this.markLayer, this.graphicsLayer);
             this.busCtl.IsDrag   = true; //允许拖拽自定义控件
             setTrack             = new buscomponets.BusControl.setPlay();
             this.setTrack.IsDrag = true; //允许拖拽自定义控件
         }
     }
 }
コード例 #2
0
 void iMSMap1_MapReady(ZDIMS.Event.IMSMapEvent e)
 {
     if (!DesignerProperties.IsInDesignTool)
     {
         //鹰眼赋值
         iMSEagleEye1.MapContainer = iMSMap1;
         iMSEagleEye1.LevelDiff    = 1;
         iMSEagleEye1.LevelNum     = 6;
         Canvas.SetZIndex(iMSEagleEye1, Canvas.GetZIndex(this.iMSMap1) + 12);
         //添加比例尺
         iScale = new ZDIMSDemo.Controls.Scale();
         iScale.MapContainer = iMSMap1;
         iMSMap1.AddChild(iScale);
         Canvas.SetZIndex(iScale, Canvas.GetZIndex(this.iMSMap1) + 12);
         //添加导航条
         m_navigator = new ZDIMSDemo.Controls.NavigationBar();
         m_navigator.MapContainer = this.iMSMap1;
         this.iMSMap1.AddChild(this.m_navigator);
         Canvas.SetZIndex(this.m_navigator, Canvas.GetZIndex(this.iMSMap1) + 12);
         iMSMap1.Restore();
     }
 }
コード例 #3
0
 void iMSMap1_MapViewChange(ZDIMS.Event.IMSMapEvent e)
 {
     DFwin.Margin = new Thickness(iMSMap1.LogicToScreen(pnt.X, pnt.Y).X + 15, iMSMap1.LogicToScreen(pnt.X, pnt.Y).Y + 15, 0, 0);
 }
コード例 #4
0
 void iMSMap1_MapReady(ZDIMS.Event.IMSMapEvent e)
 {
     Canvas.SetZIndex(imgwin, 180);
     Canvas.SetZIndex(img, 200);
 }