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
ownerMapowner (map)
Properties
AboveVectorMap
Is layer drawn above or below map. Default is above (true).
public bool AboveVectorMap { get; set; }
Property Value
AlphaLevel
Tile layer alpha level. Valid range is 0..255.
public int AlphaLevel { get; set; }
Property Value
CacheFetchCount
Cache fetch count. Use to enhance your cache usage.
public int CacheFetchCount { get; }
Property Value
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
HEREApiKey
ApiKey from Here.
public string HEREApiKey { get; set; }
Property Value
HEREUseProduction
Use production server of map provider. Enable this when releasing application customer.
public bool HEREUseProduction { get; set; }
Property Value
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
ServerCallCount
Used for getting server call count.
public int ServerCallCount { get; }
Property Value
Size
Defines tile image size: 256 or 512 (default).
public TileLayer.TileSize Size { get; set; }
Property Value
Type
Defines layer type.
public TileLayer.LayerType Type { get; set; }
Property Value
Visible
Defines if property is visible.
public bool Visible { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingboolTrue 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
contextStreamingContextContext.
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