Skip to content

EditInteractiveOverlay

Namespace: ThinkGeo.UI.XamarinForms

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

public class EditInteractiveOverlay : InteractiveOverlay`1, ThinkGeo.UI.XamarinForms.Adapters.IMapElementAdaptable`1[[ThinkGeo.UI.XamarinForms.Adapters.IEditInteractiveOverlayAdapter, ThinkGeo.UI.XamarinForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectOverlayOverlay<IEditInteractiveOverlayAdapter>InteractiveOverlay<IEditInteractiveOverlayAdapter>EditInteractiveOverlay
Implements IMapElementAdaptable<IEditInteractiveOverlayAdapter>

Properties

EditShapesLayer

This property gets the InMemoryFeatureLayer which holds the edit shapes.

public InMemoryFeatureLayer EditShapesLayer { get; }

Property Value

InMemoryFeatureLayer

CanReshape

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

public 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 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 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 bool CanDrag { get; set; }

Property Value

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

Adapter

Gets the adapter.

public IEditInteractiveOverlayAdapter Adapter { get; set; }

Property Value

IEditInteractiveOverlayAdapter
The adapter.

IsVisible

public bool IsVisible { get; set; }

Property Value

Boolean

Name

public string Name { get; set; }

Property Value

String

Opacity

public double Opacity { get; set; }

Property Value

Double

Constructors

EditInteractiveOverlay()

Default constructor of the class.

If you use thi constructor, please set the properties correctly or it will use their default values.

public EditInteractiveOverlay()

EditInteractiveOverlay(IEditInteractiveOverlayAdapter)

Default constructor of the class.

If you use thi constructor, please set the properties correctly or it will use their default values.

public EditInteractiveOverlay(IEditInteractiveOverlayAdapter adapter)

Parameters

adapter IEditInteractiveOverlayAdapter
Represents interactiveOverlay Adapter.

Methods

ClearAllControlPoints()

This method clears all control points in corresponding layer.

public void ClearAllControlPoints()

CalculateAllControlPoints()

This method calculates all control points.

public void CalculateAllControlPoints()

Remarks:

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

Events

FeatureDragged

public event EventHandler<FeatureDraggedEditInteractiveOverlayEventArgs> FeatureDragged;

FeatureDragging

public event EventHandler<FeatureDraggingEditInteractiveOverlayEventArgs> FeatureDragging;

FeatureResized

public event EventHandler<FeatureResizedEditInteractiveOverlayEventArgs> FeatureResized;

FeatureResizing

public event EventHandler<FeatureResizingEditInteractiveOverlayEventArgs> FeatureResizing;

FeatureRotated

public event EventHandler<FeatureRotatedEditInteractiveOverlayEventArgs> FeatureRotated;

FeatureRotating

public event EventHandler<FeatureRotatingEditInteractiveOverlayEventArgs> FeatureRotating;

VertexAdded

public event EventHandler<VertexAddedEditInteractiveOverlayEventArgs> VertexAdded;

VertexAdding

public event EventHandler<VertexAddingEditInteractiveOverlayEventArgs> VertexAdding;

VertexMoved

public event EventHandler<VertexMovedEditInteractiveOverlayEventArgs> VertexMoved;

VertexMoving

public event EventHandler<VertexMovingEditInteractiveOverlayEventArgs> VertexMoving;

VertexRemoved

public event EventHandler<VertexRemovedEditInteractiveOverlayEventArgs> VertexRemoved;

VertexRemoving

public event EventHandler<VertexRemovingEditInteractiveOverlayEventArgs> VertexRemoving;

ControlPointSelected

public event EventHandler<ControlPointSelectedEditInteractiveOverlayEventArgs> ControlPointSelected;

ControlPointSelecting

public event EventHandler<ControlPointSelectingEditInteractiveOverlayEventArgs> ControlPointSelecting;

EditEnded

public event EventHandler<EditEndedEditInteractiveOverlayEventArgs> EditEnded;