${ui_action_DrawPolygon_Title}。
${ui_action_DrawPolygon_Description_sl}
//绘制多边形 private void btn_Region_Click(object sender , RoutedEventArgs e) { DrawPolygon region = new DrawPolygon(this.MyMap); this.MyMap.Action = region; region.DrawCompleted += new EventHandler<DrawEventArgs>(region_DrawCompleted); }
//绘制面操作,用于面查询 private void Region_Click(object sender, RoutedEventArgs e) { DrawPolygon polygon = new DrawPolygon(MyMap); MyMap.Action = polygon; //绘制结束调用 DrawCompleted 函数 polygon.DrawCompleted += new EventHandler<DrawEventArgs>(DrawCompleted); }
private void mybtn2_Click(object sender, RoutedEventArgs e) { this.featuresLayer.ClearFeatures(); this.elementsLayer.Children.Clear(); DrawPolygon polygon = new DrawPolygon(MyMap); MyMap.Action = polygon; polygon.DrawCompleted += new EventHandler<DrawEventArgs>(polygon_DrawCompleted); }
//绘制面 private void btn_FreeRegion_Click(object sender, RoutedEventArgs e) { DrawPolygon polygon = new DrawPolygon(this.MyMap) { Fill = regionColor, Stroke = new SolidColorBrush { Color=Colors.Blue} }; this.MyMap.Action = polygon; polygon.DrawCompleted += new EventHandler<DrawEventArgs>(polygon_DrawCompleted); }
private void Region_Click(object sender, RoutedEventArgs e) { DrawPolygon dp = new DrawPolygon(MyMap); dp.DrawCompleted += new EventHandler<DrawEventArgs>(dp_DrawCompleted); MyMap.Action = dp; }
private void Region_Click(object sender, RoutedEventArgs e) { DrawPolygon dpl = new DrawPolygon(MyMap); dpl.DrawCompleted += DrawCompleted; MyMap.Action = dpl; }