Class ImageLayer
Implements
Inherited Members
Namespace: Mapsui.Layers
Assembly: Mapsui.dll
Syntax
public class ImageLayer : BaseLayer, IAsyncDataFetcher, ILayerDataSource<IProvider>, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable
Constructors
| Edit this page View SourceImageLayer()
Declaration
public ImageLayer()
ImageLayer(string)
Declaration
public ImageLayer(string layerName)
Parameters
Type | Name | Description |
---|---|---|
string | layerName |
Properties
| Edit this page View SourceDataSource
Declaration
public IProvider? DataSource { get; set; }
Property Value
Type | Description |
---|---|
IProvider |
FetchDelay
Delay before fetching a new wms image from the server after the view has changed. Specified in milliseconds.
Declaration
public int FetchDelay { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceAbortFetch()
Aborts the tile fetches that are in progress. If this method is not called the threads will terminate naturally. It will just take a little longer.
Declaration
public void AbortFetch()
ClearCache()
Clear cache of layer
Declaration
public void ClearCache()
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
| Edit this page View SourceGetFeatures(MRect, double)
Get all features in a given MRect for a given resolution
Declaration
public override IEnumerable<IFeature> GetFeatures(MRect box, double resolution)
Parameters
Type | Name | Description |
---|---|---|
MRect | box | |
double | resolution | Resolution of viewport |
Returns
Type | Description |
---|---|
IEnumerable<IFeature> |
Overrides
| Edit this page View SourceRefreshData(FetchInfo)
Indicates that there has been a change in the view of the map
Declaration
public void RefreshData(FetchInfo fetchInfo)
Parameters
Type | Name | Description |
---|---|---|
FetchInfo | fetchInfo | FetchInfo |