Skip to content

LayerOverlay

Namespace: ThinkGeo.UI.WebApi

A collection of layer and provides some methods, properties and events for drawing. Implements the Overlay

public class LayerOverlay : Overlay

Inheritance ObjectOverlayLayerOverlay

Properties

Layers

Gets the layers.

public GeoCollection<Layer> Layers { get; }

Property Value

GeoCollection<Layer>
A collection of layer.

TileCache

Gets or sets the tile cache.

public RasterTileCache TileCache { get; set; }

Property Value

RasterTileCache
The tile cache.

TileWidth

Gets or sets the width of the tile.

public int TileWidth { get; set; }

Property Value

Int32
The width of the tile.

TileHeight

Gets or sets the height of the tile.

public int TileHeight { get; set; }

Property Value

Int32
The height of the tile.

Id

Gets the ID.

public string Id { get; }

Property Value

String
The ID.

IsVisible

Gets or sets a value indicating whether this overlay is visible.

public bool IsVisible { get; set; }

Property Value

Boolean
true if this overlay is visible; otherwise, false.

DrawingExceptionMode

Gets or sets the drawing exception mode.

public DrawingExceptionMode DrawingExceptionMode { get; set; }

Property Value

DrawingExceptionMode
The drawing exception mode.

Constructors

LayerOverlay()

Initializes a new instance of the LayerOverlay class.

public LayerOverlay()

LayerOverlay(String)

Initializes a new instance of the LayerOverlay class.

public LayerOverlay(string id)

Parameters

id String
The identifier.

LayerOverlay(IEnumerable<Layer>)

Initializes a new instance of the LayerOverlay class.

public LayerOverlay(IEnumerable<Layer> layers)

Parameters

layers IEnumerable<Layer>
A collection of layer to be drawn.

LayerOverlay(String, IEnumerable<Layer>)

Initializes a new instance of the LayerOverlay class.

public LayerOverlay(string id, IEnumerable<Layer> layers)

Parameters

id String
The identifier.

layers IEnumerable<Layer>
A collection of layer to be drawn.

Methods

DrawCore(GeoCanvas)

protected void DrawCore(GeoCanvas geoCanvas)

Parameters

geoCanvas GeoCanvas

OnDrawingLayer(DrawingLayerOverlayEventArgs)

Called when the event occurs.

protected void OnDrawingLayer(DrawingLayerOverlayEventArgs e)

Parameters

e DrawingLayerOverlayEventArgs
The instance containing the event data.

OnDrawnLayer(DrawnLayerOverlayEventArgs)

Called when the event occurs.

protected void OnDrawnLayer(DrawnLayerOverlayEventArgs e)

Parameters

e DrawnLayerOverlayEventArgs
The instance containing the event data.

Events

DrawingLayer

Raises before the layer from collection is drawing.

public event EventHandler<DrawingLayerOverlayEventArgs> DrawingLayer;

DrawnLayer

Raises after the layer from collection is drawn.

public event EventHandler<DrawnLayerOverlayEventArgs> DrawnLayer;

Drawing

This event raises before the overlay is drawing.

public event EventHandler<DrawingOverlayEventArgs> Drawing;

Drawn

This event raises after the overlay is drawn.

public event EventHandler<DrawnOverlayEventArgs> Drawn;