示例#1
0
 private void Map_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
 {
     if (MeasureDistance && p1)
     {
         if (linea != null)
         {
             linea.Delete();
         }
         linea = Map.ActiveMap.Shapes.AddLine(point1, Map.ActiveMap.XYToLocation(e.x, e.y));
     }
 }
 private void Map_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
 {
     if (MeasureDistance && p1)
     {
         if (linea!=null)
             linea.Delete();
         linea = Map.ActiveMap.Shapes.AddLine(point1, Map.ActiveMap.XYToLocation(e.x, e.y));
     }
 }