Table of Contents

Class TileLayer

Namespace
LightningChartLib.WinForms.Charting.Maps
Assembly
LightningChart.WinForms.Charting.NET4.dll

Map tile layer. Get image to front or back of map.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class TileLayer : ChartNode, IChartNode, IDisposable
Inheritance
TileLayer
Implements
Inherited Members

Constructors

TileLayer()

Constructor.

public TileLayer()

TileLayer(Map)

Constructor.

public TileLayer(Map owner)

Parameters

owner Map

owner (map)

Properties

AboveVectorMap

Is layer drawn above or below map. Default is above (true).

public bool AboveVectorMap { get; set; }

Property Value

bool

AlphaLevel

Tile layer alpha level. Valid range is 0..255.

public int AlphaLevel { get; set; }

Property Value

int

CacheFetchCount

Cache fetch count. Use to enhance your cache usage.

public int CacheFetchCount { get; }

Property Value

int

CacheImages

Cache images to a file folder. Speeds up the tile fetching when using same zoom levels and regions.

public bool CacheImages { get; set; }

Property Value

bool

HEREApiKey

ApiKey from Here.

public string HEREApiKey { get; set; }

Property Value

string

HEREUseProduction

Use production server of map provider. Enable this when releasing application customer.

public bool HEREUseProduction { get; set; }

Property Value

bool

PPI

Defines tile's PPI parameter to render labels and icons in different sizes: 100, 200 (default) or 400.

public TileLayer.TilePPI PPI { get; set; }

Property Value

TileLayer.TilePPI

ServerCallCount

Used for getting server call count.

public int ServerCallCount { get; }

Property Value

int

Size

Defines tile image size: 256 or 512 (default).

public TileLayer.TileSize Size { get; set; }

Property Value

TileLayer.TileSize

Type

Defines layer type.

public TileLayer.LayerType Type { get; set; }

Property Value

TileLayer.LayerType

Visible

Defines if property is visible.

public bool Visible { get; set; }

Property Value

bool

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

True if managed resources should be disposed, otherwise false.

GetZoomLevel()

Get zoom level.

public int GetZoomLevel()

Returns

int
returns M:LightningChartLib.WinForms.Charting.Maps.TileLayer.GetZoomLevel

OnDeserialized(StreamingContext)

OnDeserialized is called just after the object has been deserialized.

[OnDeserialized]
public void OnDeserialized(StreamingContext context)

Parameters

context StreamingContext

Context.

Refresh()

Used for refreshing tile data.

public void Refresh()

RemoveNonvisibleTiles()

Remove tiles (minus some at the edges), which are not currently visible.

public void RemoveNonvisibleTiles()

ToString()

Item to string.

public override string ToString()

Returns

string
returns M:LightningChartLib.WinForms.Charting.Maps.TileLayer.ToString

Events

TileFetchFailed

Occurs when a map tile fetch operation fails.

public event TileLayer.TileFetchFailedEventHandler TileFetchFailed

Event Type

TileLayer.TileFetchFailedEventHandler