コード例 #1
0
        public FrmPartialRefresh()
        {
            InitializeComponent();
            mMapControl      = new UcMapControl();
            mMapControl.Dock = DockStyle.Fill;

            mMapControl.SetCenter(new RPoint(0, 0, 0));//设置基准点
            this.Controls.Add(mMapControl);

            HookHelper mHook = HookHelper.Instance();

            mHook.MapControl = mMapControl;
        }
コード例 #2
0
 public override void OnCreate(HookHelper hook)
 {
     Name           = "绘制多边形";
     mMapCtrl       = hook.MapControl as UcMapControl;
     mScreenDisplay = mMapCtrl.mScreenDisplay;
 }