Skip to content

LayerOverlay

Namespace: ThinkGeo.UI.Android

This class represents a group of layers; each layer can be of any layer type.

public class LayerOverlay : TileOverlay, System.IDisposable

Inheritance ObjectOverlayBaseOverlayTileOverlayLayerOverlay
Implements IDisposable

Remarks:

This class represents a group of layers; each layer can be of any layer type.

Properties

Layers

Gets a GeoCollection that contains the layers that will draw on the image.

public GeoCollection<Layer> Layers { get; }

Property Value

GeoCollection<Layer>
A GeoCollection of layers.

Remarks:

The Layers property holds all of the layers that are used by the Draw method. The Draw method loops through all layers to filter out features and draw on the image with the specified styles.

IsEmpty

This property indicates whether this overlay is empty or not.

public bool IsEmpty { get; }

Property Value

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

LayerType

Gets or sets the LayerType of the Overlay.

public LayerType LayerType { get; set; }

Property Value

LayerType

TileSizeMode

public TileSizeMode TileSizeMode { get; set; }

Property Value

TileSizeMode

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.

IsCacheOnly

Gets or sets a value indicating whether this instance is cache only.

public bool IsCacheOnly { get; set; }

Property Value

Boolean
true if this instance is cache only; otherwise, false.

TileCache

Gets or sets the tile cache.

public RasterTileCache TileCache { get; set; }

Property Value

RasterTileCache
The tile cache.

TileType

Gets and sets the overlay is formed by multiple tiles or single tile.

public TileType TileType { get; set; }

Property Value

TileType
The type of the tile.

TileSnappingMode

Gets or sets the tile snapping mode.

public TileSnappingMode TileSnappingMode { get; set; }

Property Value

TileSnappingMode
The tile snapping mode.

TransitionEffect

Gets or sets the tile transition effect.

public TransitionEffect TransitionEffect { get; set; }

Property Value

TransitionEffect
The tile snapping mode.

OverlayView

Gets or sets the overlay view.

public MapLayout OverlayView { get; set; }

Property Value

MapLayout
The overlay view.

IsVisible

public bool IsVisible { get; set; }

Property Value

Boolean

Name

Gets or sets the name of this overaly.

public string Name { get; set; }

Property Value

String

DrawingExceptionMode

This property gets and sets the DrawingExceptionMode used when an exception occurs during drawing.

public DrawingExceptionMode DrawingExceptionMode { get; set; }

Property Value

DrawingExceptionMode
The drawing exception mode.

MapArguments

Gets or sets the map arguments.

public MapArguments MapArguments { get; set; }

Property Value

MapArguments
The map arguments.

Attribution

Gets or sets the attribution.

public string Attribution { get; set; }

Property Value

String
The attribution.

DrawingQuality

Gets or sets the drawingQuality for this overlay.

public DrawingQuality DrawingQuality { get; set; }

Property Value

DrawingQuality

Opacity

Gets or sets the opacity for this overlay.

public double Opacity { get; set; }

Property Value

Double

Constructors

LayerOverlay()

Initializes a new instance of the LayerOverlay class.

public LayerOverlay()

LayerOverlay(IEnumerable<Layer>)

Constructor of LayerOverlay class.

public LayerOverlay(IEnumerable<Layer> layers)

Parameters

layers IEnumerable<Layer>
This parameter indicates a layer collection which needs to be drawn.

Methods

GetTileCore(Context)

Chooses a tile object to form the TileOverlay. When overriding this method, consider the initialize parameters setting on the tile.

protected TileView GetTileCore(Context context)

Parameters

context Context
Interface to global information about an application environment.

Returns

TileView
A tile object to form the TileOverlay.

GetBoundingBoxCore()

This method gets a bounding box that holds all the layers which are added in this overlay.

protected RectangleShape GetBoundingBoxCore()

Returns

RectangleShape
A RectangleShape value that holds all the layers which are added in this overlay.

OpenCore()

protected void OpenCore()

CloseCore()

protected void CloseCore()

Events

DrawingException

Occurs before exception is drawing on map.

public event EventHandler<DrawingExceptionOverlayEventArgs> DrawingException;

DrawnException

Occurs after exception is drawn on map.

public event EventHandler<DrawnExceptionOverlayEventArgs> DrawnException;

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;