Exemple #1
0
 void EditOverlay_FeatureDragged(object sender, FeatureDraggedEditInteractiveOverlayEventArgs e)
 {
     wpfMap1.EditOverlay.EditShapesLayer.InternalFeatures.Remove("lineshape");
     wpfMap1.EditOverlay.EditShapesLayer.InternalFeatures.Add("lineshape", new Feature(getLineshape((wpfMap1.EditOverlay.EditShapesLayer.InternalFeatures[0].GetShape() as PolygonShape), (wpfMap1.EditOverlay.EditShapesLayer.InternalFeatures[1].GetShape() as PolygonShape)))
     {
         Id = "lineshape"
     });
 }
 void FeatureDraggedHandler(object sender, FeatureDraggedEditInteractiveOverlayEventArgs featureDraggedEditInteractiveOverlayEventArgs) 
 {
     _editOverlay.EditShapesLayer.Open();
     var bounds = _editOverlay.EditShapesLayer.GetBoundingBox();
     _editOverlay.EditShapesLayer.Close();
     UpdateCoordinates(bounds);
     //Debug.WriteLine("Dragged: North {0} South {1} East {2} West {3}", bounds.UpperLeftPoint.Y, bounds.LowerRightPoint.Y, bounds.LowerRightPoint.X, bounds.UpperLeftPoint.X);
 }
Exemple #3
0
        protected virtual void OnFeatureDragged(FeatureDraggedEditInteractiveOverlayEventArgs e)
        {
            EventHandler <EventArgs> handler = FeatureDragged;

            if (handler != null)
            {
                handler(this, e);
            }
        }