Esempio n. 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);
        }
Esempio n. 2
0
 private void axPageLayoutControl1_OnMouseMove(object sender, ESRI.ArcGIS.Controls.IPageLayoutControlEvents_OnMouseMoveEvent e)
 {
     if (pElement is IMapSurroundFrame)
     {
         Console.WriteLine("shide");
         IPoint pPoint = new PointClass();
         pPoint.X = e.pageX;
         pPoint.Y = e.pageY;
         GeomapLoad.setElementPosition(axPageLayoutControl1, pElement, pPoint);
     }
 }
Esempio n. 3
0
        private void axPageLayoutControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IPageLayoutControlEvents_OnMouseDownEvent e)
        {
            IPoint pPoint = new PointClass();

            pPoint.X = e.pageX;
            pPoint.Y = e.pageY;
            Console.WriteLine(pPoint.X + "," + pPoint.Y);
            pElement = GeomapLoad.getElement(axPageLayoutControl1, pPoint);
            IBorder pBorder = new SymbolBorder();

            pBorder.Gap = 1.0;
            (pElement as IMapSurroundFrame).Border = pBorder;
            axPageLayoutControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);
        }
Esempio n. 4
0
 private void 添加坐标系ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GeomapLoad.addScalebar(axPageLayoutControl1, "esriCarto.ScaleLine");
 }
Esempio n. 5
0
 private void 切换页面方向ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GeomapLoad.changeOritation(axPageLayoutControl1);
 }
Esempio n. 6
0
 private void axMapControl1_OnViewRefreshed(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnViewRefreshedEvent e)
 {
     GeomapLoad.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
 }
Esempio n. 7
0
 private void 输出图像ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GeomapLoad.exportMaptoJPEG(axPageLayoutControl1);
 }