Skip to content

IOverlayAdapter

Namespace: ThinkGeo.UI.XamarinForms.Adapters

This class is the base class of all overlay adapters in this overlay adapter system.

public interface IOverlayAdapter : IMapElementAdapter

Implements IMapElementAdapter

Properties

IsVisible

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

public abstract bool IsVisible { get; set; }

Property Value

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

Name

Gets or sets the name.

public abstract string Name { get; set; }

Property Value

String
The name.

Opacity

Gets or sets the Alpha value of the overlay, from 0 to 1.0

public abstract double Opacity { get; set; }

Property Value

Double

Methods

Refresh()

This method refreshes all the content in the OverlayCanvas. For example, LayerOverlay with multiple tiles; when the style of one layer is changed, call Refresh to refresh all the tiles to accept new styles.

void Refresh()

Remarks:

The difference from Draw() method is that Refresh() method refreshs all the elements while Draw() does not.

RefreshAsync()

Task RefreshAsync()

Returns

Task

GetBoundingBox()

RectangleShape GetBoundingBox()

Returns

RectangleShape