Ejemplo n.º 1
0
        /// <summary>
        /// 释放工具命令
        /// </summary>
        public void ReleaseCommond()
        {
            mapLogic.RemoveLayer(layer);
            if (elementList != null)
            {
                foreach (var item in elementList)
                {
                    item.HightLight(false);
                }
            }
            if (gmapControl != null)
            {
                gmapControl.CanDragMap = true;
                gmapControl.SetCursor(Cursors.Default);
                gmapControl.OnMarkerClick -= gmapControl_OnMarkerClick;
                gmapControl.KeyDown       -= gmapControl_KeyDown;
                gmapControl.KeyUp         -= gmapControl_KeyUp;

                gmapControl.MouseDown   -= gmapControl_MouseDown;
                gmapControl.MouseMove   -= gmapControl_MouseMove;
                gmapControl.MouseUp     -= gmapControl_MouseUp;
                gmapControl.DoubleClick -= gmapControl_DoubleClick;
            }

            Utils.bPublishEvent = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 清理态势数据
        /// </summary>
        public void ClearRealData()
        {
            try
            {
                for (int i = 0; i < 4; i++)
                {
                    mapLogic.RemoveLayer(GetModelLayerName((byte)i));   // 移除图层
                }

                planeMgr.ClearData();
                trackMgr.ClearData();
                trackPicture = null;
            }
            catch (System.Exception ex)
            {
                Log4Allen.WriteLog(typeof(ArcGlobeBusiness), ex.Message);
            }
        }
Ejemplo n.º 3
0
 private void  除图层ToolStripMenuItem_Click(object sender, System.EventArgs e)
 {
     mapLogic.RemoveLayer(drawLayerName);
 }