Skip to content

IEditInteractiveOverlayAdapter

Namespace: ThinkGeo.UI.XamarinForms.Adapters

This class inherits from InterativeOverlay abstract class. This specified overlay describle the EditShape interative process with MapControl using Mouse or Keyborad.

public interface IEditInteractiveOverlayAdapter : IOverlayAdapter, IMapElementAdapter

Implements IOverlayAdapter, IMapElementAdapter

Properties

EditShapesLayer

This property gets the InMemoryFeatureLayer which holds the edit shapes.

public abstract InMemoryFeatureLayer EditShapesLayer { get; }

Property Value

InMemoryFeatureLayer

CanReshape

Gets a value which indicates whether the shape can be reshaped.

public abstract bool CanReshape { get; set; }

Property Value

Boolean
true if this instance can reshape; otherwise, false.

CanResize

Gets a value which indicates whether the shape can be resized.

public abstract bool CanResize { get; set; }

Property Value

Boolean
true if this instance can resize; otherwise, false.

CanRotate

Gets a value which indicates whether the shape can be rotated.

public abstract bool CanRotate { get; set; }

Property Value

Boolean
true if this instance can rotate; otherwise, false.

CanDrag

Gets a value which indicates whether the shape can be dragged.

public abstract bool CanDrag { get; set; }

Property Value

Boolean
true if this instance can drag; otherwise, false.

Methods

ClearAllControlPoints()

This method clears all control points in corresponding layer.

void ClearAllControlPoints()

CalculateAllControlPoints()

This method calculates all control points.

void CalculateAllControlPoints()

Remarks:

First, it will clear all control points. Then it will calculate each control points according to their settings.

Events

FeatureDragged

This event will be fired after drag the feature.

public abstract event EventHandler<FeatureDraggedEditInteractiveOverlayEventArgs> FeatureDragged;

FeatureDragging

This event will be fired before drag the feature.

public abstract event EventHandler<FeatureDraggingEditInteractiveOverlayEventArgs> FeatureDragging;

FeatureResized

This event will be fired after resize the feature.

public abstract event EventHandler<FeatureResizedEditInteractiveOverlayEventArgs> FeatureResized;

FeatureResizing

This event will be fired before resize the feature.

public abstract event EventHandler<FeatureResizingEditInteractiveOverlayEventArgs> FeatureResizing;

FeatureRotated

This event will be fired after rotate the feature.

public abstract event EventHandler<FeatureRotatedEditInteractiveOverlayEventArgs> FeatureRotated;

FeatureRotating

This event will be fired before rotate the feature.

public abstract event EventHandler<FeatureRotatingEditInteractiveOverlayEventArgs> FeatureRotating;

VertexAdded

This event will be fired after add the vertex.

public abstract event EventHandler<VertexAddedEditInteractiveOverlayEventArgs> VertexAdded;

VertexAdding

This event will be fired before add the vertex.

public abstract event EventHandler<VertexAddingEditInteractiveOverlayEventArgs> VertexAdding;

VertexMoved

This event will be fired after move the vertex.

public abstract event EventHandler<VertexMovedEditInteractiveOverlayEventArgs> VertexMoved;

VertexMoving

This event will be fired before move the vertex.

public abstract event EventHandler<VertexMovingEditInteractiveOverlayEventArgs> VertexMoving;

VertexRemoved

This event will be fired after remove the vertex.

public abstract event EventHandler<VertexRemovedEditInteractiveOverlayEventArgs> VertexRemoved;

VertexRemoving

This event will be fired before remove the vertex.

public abstract event EventHandler<VertexRemovingEditInteractiveOverlayEventArgs> VertexRemoving;

ControlPointSelected

This event will be fired after select the control point.

public abstract event EventHandler<ControlPointSelectedEditInteractiveOverlayEventArgs> ControlPointSelected;

ControlPointSelecting

This event will be fired before select the control point.

public abstract event EventHandler<ControlPointSelectingEditInteractiveOverlayEventArgs> ControlPointSelecting;

EditEnded

This event will be fired after editing.

public abstract event EventHandler<EditEndedEditInteractiveOverlayEventArgs> EditEnded;