${ui_action_DrawLine_Title}。
${ui_action_DrawLine_Description_sl}
//绘制线 private void btn_Line_Click(object sender , RoutedEventArgs e) { DrawLine line = new DrawLine(this.MyMap); this.MyMap.Action = line; line.DrawCompleted += new EventHandler<DrawEventArgs>(line_DrawCompleted); }
//绘制线操作,用于线查询 private void Line_Click(object sender, RoutedEventArgs e) { DrawLine line = new DrawLine(MyMap); MyMap.Action = line; //绘制结束调用 drawCompleted 函数 line.DrawCompleted += new EventHandler<DrawEventArgs>(drawCompleted); }
private void mybtn_Click(object sender, RoutedEventArgs e) { this.featuresLayer.ClearFeatures(); this.elementsLayer.Children.Clear(); DrawLine line = new DrawLine(MyMap); MyMap.Action = line; line.DrawCompleted += new EventHandler<DrawEventArgs>(line_DrawCompleted); }
private void Line_Click(object sender , RoutedEventArgs e) { DrawLine dl = new DrawLine(MyMap); dl.DrawCompleted += DrawCompleted; MyMap.Action = dl; }
private void BtnLine_Click(object sender, RoutedEventArgs e) { DrawLine drawLine = new DrawLine(MyMap, Cursors.Wait) { StrokeThickness = 5, Stroke = new SolidColorBrush(Colors.Green), StrokeEndLineCap = PenLineCap.Round, StrokeStartLineCap = PenLineCap.Triangle, StrokeLineJoin = PenLineJoin.Bevel, }; MyMap.Action = drawLine; drawLine.DrawCompleted += new EventHandler<DrawEventArgs>(draw_DrawComplete); }