${ui_action_DrawPoint_Title}。

${ui_action_DrawPoint_Description}

Inheritance: MapAction
 private void residential_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint point = new DrawPoint(MyMap);
     MyMap.Action = point;
     point.DrawCompleted += (s2, e2) =>
     {
         QueryByCenterParameters parameters = new QueryByCenterParameters
         {
             CenterPoint = e2.Geometry.Bounds.Center,
             Tolerance = 5,
             MapName = "Changchun",
             QueryParam = new QueryParam { QueryLayerParams = new List<QueryLayerParam>() { qlpResidentialArea } }
         };
         QueryByCenterService query = new QueryByCenterService("http://localhost:7080/demo");
         query.ProcessAsync(parameters);
         query.Failed += (s, args) => { MessageBox.Show(args.Error.ToString()); };
         query.ProcessCompleted += (s3, e3) =>
         {
             if (e3.ResultSet == null)
             {
                 MessageBox.Show("No Result!");
                 return;
             }
             sgResidentialArea = e3.ResultSet.RecordSets[0].Records[0].Shape;
             FeatureCollection fc = e3.ResultSet.RecordSets[0].ToFeatureSet();
             Feature f = new Feature { Geometry = fc[0].Geometry, Style = this.RedFillStyle };
             paramLayer.Features.Add(f);
         };
     };
 }
        //绘制点操作,用于点查询
        private void Point_Click(object sender, RoutedEventArgs e)
        {
            DrawPoint point = new DrawPoint(MyMap);
            MyMap.Action = point;

            //绘制结束调用 drawCompleted 函数
            point.DrawCompleted += new EventHandler<DrawEventArgs>(drawCompleted);
        }
 //绘制点,并且设置绘制时的样式
 private void btn_Point_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint point = new DrawPoint(this.MyMap);
     point.Color = new SolidColorBrush(Colors.Red);
     point.Size = 12;
     this.MyMap.Action = point;
     point.DrawCompleted += new EventHandler<DrawEventArgs>(point_DrawCompleted);
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {

            _elementsLayer.Children.Remove(pushpin);
            this.boder.Visibility = Visibility.Collapsed;
            this.measure.Text = "";
            DrawPoint action = new DrawPoint(MyMap);
            MyMap.Action = action;
            action.DrawCompleted += new EventHandler<DrawEventArgs>(action_DrawCompleted);

        }
 //选择服务区站点
 private void SelectPoint_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint node = new DrawPoint(MyMap);
     MyMap.Action = node;
     node.DrawCompleted += new EventHandler<DrawEventArgs>(node_DrawCompleted);
 }
 private void Point_Click(object sender , RoutedEventArgs e)
 {
     DrawPoint dp = new DrawPoint(MyMap);
     dp.DrawCompleted += DrawCompleted;
     MyMap.Action = dp;
 }
 //选择地物
 private void SelectEntity_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint selectEntity = new DrawPoint(MyMap, Cursors.Arrow);
     MyMap.Action = selectEntity;
     selectEntity.DrawCompleted += new EventHandler<DrawEventArgs>(selectEntity_DrawCompleted);
 }
        private void BtnPoint_Click(object sender, RoutedEventArgs e)
        {
            DrawPoint point = new DrawPoint(this.MyMap);
            point.DrawCompleted += new EventHandler<DrawEventArgs>(point_DrawCompleted);

            MyMap.Action = point;
        }
 //选择地物按钮触发事件
 private void SelectFeature_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint selectfeature = new DrawPoint(MyMap, Cursor);
     MyMap.Action = selectfeature;
     selectfeature.DrawCompleted += new EventHandler<DrawEventArgs>(selectfeature_DrawCompleted);
 }
 private void vegetable_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint point = new DrawPoint(MyMap);
     MyMap.Action = point;
     point.DrawCompleted += new EventHandler<DrawEventArgs>(point_DrawCompleted);
 }
 private void select_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint drawPoint = new DrawPoint(MyMap);
     MyMap.Action = drawPoint;
     drawPoint.DrawCompleted += new EventHandler<DrawEventArgs>(point_DrawCompleted);
 }