${ui_action_DrawPoint_Title}。

${ui_action_DrawPoint_Description}

Inheritance: Pan
        //绘制点操作,用于点查询
        private void Point_Click(object sender, RoutedEventArgs e)
        {
            DrawPoint point = new DrawPoint(MyMap);
            MyMap.Action = point;

            //绘制结束调用 drawCompleted 函数
            point.DrawCompleted += new EventHandler<DrawEventArgs>(drawCompleted);
        }
Esempio n. 2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     DrawPoint point = new DrawPoint(this.MyMap);
     //point.Color = new SolidColorBrush(Colors.Red);
     //point.Size = 12;
     //point.Opacity = 0.3;
     Theme theme = new Theme
     {
          Color=new SolidColorBrush(Colors.Yellow),
           StrokeThickness=9,
            Fill=new SolidColorBrush(Colors.Azure),
          Stroke = new SolidColorBrush(Colors.Black)
     };
     MyMap.Theme = theme;
     point.Color = MyMap.Theme.Color;
     point.Opacity = 0.3;
     point.Size = 36;
     MyMap.Action = point;
     point.DrawCompleted += new EventHandler<DrawEventArgs>(Point_DrawCompleted);
    
     
     
 }
 //选择服务区站点
 private void SelectPoint_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint node = new DrawPoint(MyMap);
     MyMap.Action = node;
     node.DrawCompleted += new EventHandler<DrawEventArgs>(node_DrawCompleted);
 }
 //绘制Pushpin
 private void btn_Point_Click(object sender , RoutedEventArgs e)
 {
     DrawPoint point = new DrawPoint(this.MyMap);
     this.MyMap.Action = point;
     point.DrawCompleted += new EventHandler<DrawEventArgs>(point_DrawCompleted);
 }
 private void Point_Click(object sender, RoutedEventArgs e)
 {
     DrawPoint dp = new DrawPoint(MyMap);
     dp.DrawCompleted += DrawCompleted;
     MyMap.Action = dp;
 }