${ui_action_DrawPolygon_Title}。

${ui_action_DrawPolygon_Description_sl}

Inheritance: Pan, IDrawStyle
コード例 #1
0
 //绘制多边形
 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);
 }
コード例 #2
0
        //绘制面操作,用于面查询
        private void Region_Click(object sender, RoutedEventArgs e)
        {
            DrawPolygon polygon = new DrawPolygon(MyMap);
            MyMap.Action = polygon;

            //绘制结束调用 DrawCompleted 函数
            polygon.DrawCompleted += new EventHandler<DrawEventArgs>(DrawCompleted);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 //绘制面
 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);
 }
コード例 #5
0
 private void Region_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon dp = new DrawPolygon(MyMap);
     dp.DrawCompleted += new EventHandler<DrawEventArgs>(dp_DrawCompleted);
     MyMap.Action = dp;
 }
コード例 #6
0
 private void Region_Click(object sender, RoutedEventArgs e)
 {
     DrawPolygon dpl = new DrawPolygon(MyMap);
     dpl.DrawCompleted += DrawCompleted;
     MyMap.Action = dpl;
 }