Skip to content

OverlaysDrawingMapViewEventArgs

Namespace: ThinkGeo.Core

This is the event arguments for the OverlaysDrawing event on the MapEngine class. It is raised before any of the overlays are drawn.

public class OverlaysDrawingMapViewEventArgs : System.EventArgs

Inheritance ObjectEventArgsOverlaysDrawingMapViewEventArgs

Remarks:

This is the event arguments for the OverlaysDrawing event on the MapEngine class. It is raised before any of the overlays are drawn. This event allows you to cancel, manipulate the Layer, or draw something with the canvas before the Layer draws.

Properties

Cancel

Gets or sets whether the action will be canceled or not.

public bool Cancel { get; set; }

Property Value

Boolean

WorldExtent

Gets or sets the world extent to draw.

public RectangleShape WorldExtent { get; set; }

Property Value

RectangleShape
This property gets the world extent to draw.

Remarks:

None

Overlays

This property gets the overlays you will be drawing.

public IEnumerable<Overlay> Overlays { get; }

Property Value

IEnumerable<Overlay>
This property gets the overlays you will be drawing.

Remarks:

None

Constructors

OverlaysDrawingMapViewEventArgs()

Constructor of OverlaysDrawingWpfMapEventArgs class.

public OverlaysDrawingMapViewEventArgs()

Remarks:

This is the default constructor. If you use this constructor then you need to set the required properties manually.

OverlaysDrawingMapViewEventArgs(IEnumerable<Overlay>, RectangleShape, Boolean)

Constructor of OverlaysDrawingWpfMapEventArgs class.

public OverlaysDrawingMapViewEventArgs(IEnumerable<Overlay> overlays, RectangleShape worldExtent, bool cancel)

Parameters

overlays IEnumerable<Overlay>
This parameter is the overlays that will be drawing.

worldExtent RectangleShape
This parameter is the wold extent you are drawing.

cancel Boolean
This parameter specifies whether we need to cancel drawing the overlays or not.

Remarks:

None