${WP_core_FeatureMouseButtonEventArgs_Title}

${WP_core_FeatureMouseButtonEventArgs_Description}

Inheritance: FeatureMouseEventArgs
示例#1
0
 private void editLayer_MouseLeftButtonUp(object sender , FeatureMouseButtonEventArgs args)
 {
     if (activeFeature != null && !startPoint.IsEmpty)
     {
         OnGeometryEdit(activeFeature , GeometryEditAction.Moved);
     }//面要素移动
     stopTracking();
     args.Handled = true;
 }
示例#2
0
 private void editLayer_MouseLeftButtonDown(object sender , FeatureMouseButtonEventArgs args)
 {
     Point point=args.GetPosition(Map);
     Point2D startGeoRegion = Map.ScreenToMap(point);
     if (args.Feature != null && args.Feature.Geometry is GeoPoint)
     {
         GeoPoint geo=args.Feature.Geometry as GeoPoint;
         Point featureP = Map.MapToScreen(new Point2D(geo.X, geo.Y));
         pointOffset = new Point(featureP.X - point.X, featureP.Y - point.Y);
     }
     args.Handled = true;
     Map.Focus();
     startEdit(args.Feature , false , startGeoRegion);
 }
 void featuresLayer_MouseLeftButtonDown(object sender, FeatureMouseButtonEventArgs e)
 {
     
 }
示例#4
0
 private void virtualLayer_MouseLeftButtonUp(object sender , FeatureMouseButtonEventArgs args)
 {
     if (activeFeature != null && hoverCenterFeature != null && !startPoint.IsEmpty
         && startPoint != ( hoverCenterFeature.Geometry as GeoPoint ).Location)
     {
         OnGeometryEdit(activeFeature , GeometryEditAction.Moved);
     }//线要素移动
     else if (activeFeature != null && draggingVertex != null && startGeoPoint.IsEmpty)
     {
         OnGeometryEdit(activeFeature , GeometryEditAction.Moved);
     }//点要素移动
     else if (activeFeature != null && draggingVertex != null && !startGeoPoint.IsEmpty
         && ( startGeoPoint != ( draggingVertex.Geometry as GeoPoint ).Location ))
     {
         OnGeometryEdit(activeFeature , GeometryEditAction.VertexMoved);
         changeCenterFeatureLocation();
     }//线面顶点移动
     stopTracking();
     args.Handled = true;
 }
示例#5
0
 private void virtualLayer_MouseLeftButtonDown(object sender , FeatureMouseButtonEventArgs args)
 {
     args.Handled = true;
     Feature hoverFeature = args.Feature;
     if (hoverFeature == hoverCenterFeature)
     {
         prepareMoveLineOrRegionFeature(( hoverCenterFeature.Geometry as GeoPoint ).Location);
     }
     else
         if (hoverFeature.Geometry is GeoPoint)
         {
             prepareMovePointFeature(hoverFeature);
         }
         else if (hoverFeature.Geometry is GeoLine)
         {
             Point2D pMap = Map.ScreenToMap(args.GetPosition(Map));
             addOneVertex(hoverFeature , pMap);
         }
 }