AE 中鹰眼实现

该博客详细介绍了在ArcGIS Engine(AE)中如何实现鹰眼功能。当MapControl1的范围更新或地图替换时,MapControl2会同步更新其视图,并在MapControl2中显示红色矩形框作为鹰眼图。此外,当在MapControl2上点击鼠标时,MapControl1将中心对准点击位置,实现了交互式的鹰眼导航功能。
摘要由CSDN通过智能技术生成

  private void axMapControl1_OnMapReplaced(object sender, IMapControlEvents2_OnMapReplacedEvent e)//同步mapcontrol1  与 2
        {
            //get the current document name from the MapControl
            m_mapDocumentName = m_mapControl.DocumentFilename;

            //if there is no MapDocument, diable the Save menu and clear the statusbar
            if (m_mapDocumentName == string.Empty)
            {
                menuSaveDoc.Enabled = false;
                statusBarXY.Text = string.Empty;
            }
            else
            {
                //enable the Save manu and write the doc name to the statusbar
                menuSaveDoc.Enabled = true;
                statusBarXY.Text = System.IO.Path.GetFileName(m_mapDocumentName);
            }
            axMapControl2.LoadMxFile(axMapControl1.DocumentFilename);

            axMap

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值