Skip to content

WmtsOverlay

Namespace: ThinkGeo.UI.Android

public class WmtsOverlay : TileOverlay, System.IDisposable

Inheritance ObjectOverlayBaseOverlayTileOverlayWmtsOverlay
Implements IDisposable

Properties

ServerUris

public Collection<Uri> ServerUris { get; }

Property Value

Collection<Uri>

TileCache

public RasterTileCache TileCache { get; set; }

Property Value

RasterTileCache

CapabilitesCacheTimeout

public TimeSpan CapabilitesCacheTimeout { get; set; }

Property Value

TimeSpan

ActiveLayerName

public string ActiveLayerName { get; set; }

Property Value

String

WmtsSeverEncodingType

public WmtsSeverEncodingType WmtsSeverEncodingType { get; set; }

Property Value

WmtsSeverEncodingType

WmtsServerLayers

public Collection<WmtsServerLayer> WmtsServerLayers { get; set; }

Property Value

Collection<WmtsServerLayer>

ActiveStyleName

public string ActiveStyleName { get; set; }

Property Value

String

Parameters

public Dictionary<string, string> Parameters { get; }

Property Value

Dictionary<String, String>

OutputFormat

public string OutputFormat { get; set; }

Property Value

String

Credentials

public ICredentials Credentials { get; set; }

Property Value

ICredentials

LowerScale

public double LowerScale { get; set; }

Property Value

Double

UpperScale

public double UpperScale { get; set; }

Property Value

Double

TileMatrixSetName

public string TileMatrixSetName { get; set; }

Property Value

String

AxisOrder

public WmtsAxisOrder AxisOrder { get; set; }

Property Value

WmtsAxisOrder

ProjectionConverter

public ProjectionConverter ProjectionConverter { get; set; }

Property Value

ProjectionConverter

ProjectedTileCache

public RasterTileCache ProjectedTileCache { get; set; }

Property Value

RasterTileCache

WebProxy

Gets or sets the Web Proxy for web service.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

TimeoutInSeconds

Gets or sets the length of time, in seconds, before the request times out.

public int TimeoutInSeconds { get; set; }

Property Value

Int32

TileMatrixSets

The tile matrix sets of this WmtsOverlay in Dictionary.

public Dictionary<string, WmtsTileMatrixSet> TileMatrixSets { get; }

Property Value

Dictionary<String, WmtsTileMatrixSet>

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.

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.

IsEmpty

Gets a value indicating whether this instance is empty.

public bool IsEmpty { get; }

Property Value

Boolean

Remarks:

This property enhances the performance of the overlay while drawing. If is true, we will skip drawing this overlay and continue drawing the next overlay.

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

WmtsOverlay()

public WmtsOverlay()

WmtsOverlay(IEnumerable<Uri>)

public WmtsOverlay(IEnumerable<Uri> serverUris)

Parameters

serverUris IEnumerable<Uri>

WmtsOverlay(IEnumerable<Uri>, IWebProxy)

public WmtsOverlay(IEnumerable<Uri> serverUris, IWebProxy webProxy)

Parameters

serverUris IEnumerable<Uri>

webProxy IWebProxy

WmtsOverlay(IEnumerable<Uri>, WmtsSeverEncodingType)

public WmtsOverlay(IEnumerable<Uri> serverUris, WmtsSeverEncodingType wmtsSeverEncodingType)

Parameters

serverUris IEnumerable<Uri>

wmtsSeverEncodingType WmtsSeverEncodingType

WmtsOverlay(IEnumerable<Uri>, IWebProxy, WmtsSeverEncodingType)

public WmtsOverlay(IEnumerable<Uri> serverUris, IWebProxy webProxy, WmtsSeverEncodingType wmtsSeverEncodingType)

Parameters

serverUris IEnumerable<Uri>

webProxy IWebProxy

wmtsSeverEncodingType WmtsSeverEncodingType

Methods

GetTileCore(Context)

protected TileView GetTileCore(Context context)

Parameters

context Context

Returns

TileView

GetRequestUris(RectangleShape, Int32, Int32)

public Collection<Uri> GetRequestUris(RectangleShape requestExtent, int canvasWidth, int canvasHeight)

Parameters

requestExtent RectangleShape

canvasWidth Int32

canvasHeight Int32

Returns

Collection<Uri>

GetServerCapabilitiesXml()

public string GetServerCapabilitiesXml()

Returns

String

GetServerLayerNames()

public Collection<string> GetServerLayerNames()

Returns

Collection<String>

GetServerLayerStyles()

public Collection<string> GetServerLayerStyles()

Returns

Collection<String>

GetServerTileMatrixSetNames()

public Collection<string> GetServerTileMatrixSetNames()

Returns

Collection<String>

GetLayerOutputFormats(String)

public Collection<string> GetLayerOutputFormats(string layerName)

Parameters

layerName String

Returns

Collection<String>

OnSendingWebRequest(SendingWebRequestEventArgs)

protected void OnSendingWebRequest(SendingWebRequestEventArgs e)

Parameters

e SendingWebRequestEventArgs

OnSentWebRequest(SentWebRequestEventArgs)

protected void OnSentWebRequest(SentWebRequestEventArgs e)

Parameters

e SentWebRequestEventArgs

OpenCore()

protected void OpenCore()

CloseCore()

protected void CloseCore()

DrawTileAsyncCore(GeoCanvas, TileView)

protected Task DrawTileAsyncCore(GeoCanvas geoCanvas, TileView tile)

Parameters

geoCanvas GeoCanvas

tile TileView

Returns

Task

DrawTileCore(GeoCanvas, TileView)

protected void DrawTileCore(GeoCanvas geoCanvas, TileView tile)

Parameters

geoCanvas GeoCanvas

tile TileView

GetTileMatrixCore(Double, Int32, Int32, GeographyUnit)

protected TileMatrix GetTileMatrixCore(double scale, int tileWidth, int tileHeight, GeographyUnit boundingBoxUnit)

Parameters

scale Double

tileWidth Int32

tileHeight Int32

boundingBoxUnit GeographyUnit

Returns

TileMatrix

GetZoomLevelSet(String)

public ZoomLevelSet GetZoomLevelSet(string tileMatrixSetName)

Parameters

tileMatrixSetName String

Returns

ZoomLevelSet

RemoveCachedCapability()

public bool RemoveCachedCapability()

Returns

Boolean

Events

SendingWebRequest

public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest;

SentWebRequest

public event EventHandler<SentWebRequestEventArgs> SentWebRequest;

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;