예제 #1
0
        private void axMapControl1_OnAfterScreenDraw(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            pAcv = axPageLayoutControl1.ActiveView.FocusMap as IActiveView;
            IDisplayTransformation displayTransformation = pAcv.ScreenDisplay.DisplayTransformation;

            displayTransformation.VisibleBounds = axMapControl1.Extent;//设置焦点地图的可视范围
            GeomapLoad.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
        }
예제 #2
0
 private void axMapControl1_OnViewRefreshed(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnViewRefreshedEvent e)
 {
     GeomapLoad.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
 }