Esempio n. 1
0
 private void PolyCreateButton_Click(object sender, RoutedEventArgs e)
 {
     GMPolygon.AddPolygon(this);
     GMPolygon.GMPoint.AddPolyPoint = false;
     // myMap.Children.Remove(PolyPointLayer);
     PolyPointButton.Content  = "Polygon";
     PolyCreateButton.Content = "";
 }
Esempio n. 2
0
        /*
         * this is where we tried to make it so that a selected point is able to be moved. but we only want the points that are connected to a SelectedPolygon to move
         * which leads us to the commented out methods and errors in the Polygon_TouchDown part and the AddPoint part.
         */

        internal static void MovePoint(GISMapPoint GMPoint, GISMapPolygon Polygon, GISMapPoint SelectedPoint, SurfaceWindow1 mapwindow)
        {
            GMPoint.PointLocation = SelectedPoint.PointLocation;
            Polygon.AddPolygon(mapwindow);
        }
Esempio n. 3
0
 /*
  * this is where we tried to make it so that a selected point is able to be moved. but we only want the points that are connected to a SelectedPolygon to move
  * which leads us to the commented out methods and errors in the Polygon_TouchDown part and the AddPoint part.
  */
 internal static void MovePoint(GISMapPoint GMPoint, GISMapPolygon Polygon, GISMapPoint SelectedPoint, SurfaceWindow1 mapwindow)
 {
     GMPoint.PointLocation = SelectedPoint.PointLocation;
     Polygon.AddPolygon(mapwindow);
 }