From f00f8abdb19d80d021b7c2c2f8a6e08fd54887c6 Mon Sep 17 00:00:00 2001 From: cbwu <504-wuchengbo@htsdfp.com> Date: Wed, 31 Jan 2024 10:40:05 +0800 Subject: [PATCH] =?UTF-8?q?type(fix):=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0t?= =?UTF-8?q?iff=E6=96=87=E4=BB=B6=E4=B8=8B=E8=88=AA=E7=BA=BF=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E7=9A=84=E4=B8=80=E4=BA=9Bbug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GISDlg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GISDlg.cpp b/GISDlg.cpp index f212b04..1f25622 100644 --- a/GISDlg.cpp +++ b/GISDlg.cpp @@ -1221,6 +1221,8 @@ void CGISDlg::Openlocalfile(CString file) m_Layer->AddLayerInfo(filename,2); + m_map.ZoomToLayer(tiffLayerID); + //是否已经加载了地图 m_bHaveAddMap = true; } @@ -3454,6 +3456,7 @@ void CGISDlg::ClearDrawingInLineDesign() if (m_designLineLayerID2 != -1) { m_map.RemoveLayer(m_designLineLayerID2); + m_designLineLayerID2 = -1; } //m_map.ClearLabels(m_designLineLayerID); } @@ -3908,7 +3911,7 @@ void CGISDlg::DrawDesignLineData() m_map.ClearDrawing(m_designLineLayerID); m_designLineLayerID = m_map.NewDrawing(1); long index = m_map.GetLayerPosition(m_designLineLayerID); - BOOL b= m_map.MoveLayerUp(index); + //BOOL b= m_map.MoveLayerUp(index); int i = 0; //绘制航点及其标注