Class ImageLayer
Assembly: Mapsui.dll
Syntax
public class ImageLayer : BaseLayer, IFetchableSource, ILayerDataSource<IProvider>, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, ILayerFeatureInfo
Constructors
|
Edit this page
View Source
ImageLayer()
Declaration
|
Edit this page
View Source
ImageLayer(string)
Declaration
public ImageLayer(string layerName)
Parameters
| Type |
Name |
Description |
| string |
layerName |
|
Properties
|
Edit this page
View Source
DataSource
Declaration
public IProvider? DataSource { get; set; }
Property Value
|
Edit this page
View Source
NeedsFetch
Declaration
public bool NeedsFetch { get; }
Property Value
Methods
|
Edit this page
View Source
ClearCache()
Clears the cache of this layer. Call this if source data has was invalidated or the layer is
removed.
Declaration
|
Edit this page
View Source
GetFeatureInfoAsync(Viewport, ScreenPosition)
Declaration
public Task<IDictionary<string, IEnumerable<IFeature>>> GetFeatureInfoAsync(Viewport viewport, ScreenPosition screenPosition)
Parameters
Returns
|
Edit this page
View Source
GetFeatures(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
Overrides
|
Edit this page
View Source
GetFetchJobs(int, int)
Gets the fetch requests for this layer. The requests are based on the viewport stored within the layer.
Declaration
public FetchJob[] GetFetchJobs(int activeFetches, int availableFetchSlots)
Parameters
| Type |
Name |
Description |
| int |
activeFetches |
|
| int |
availableFetchSlots |
Number of available fetch slots in the caller. It is the maximum number
of fetch jobs the method should return.
|
Returns
|
Edit this page
View Source
OnFetchRequested()
Declaration
protected virtual void OnFetchRequested()
|
Edit this page
View Source
ViewportChanged(FetchInfo)
Informs the layer that the viewport has changed and it should update its data accordingly.
Declaration
public void ViewportChanged(FetchInfo fetchInfo)
Parameters
Events
|
Edit this page
View Source
FetchRequested
Indicates to the listener that it should fetch data again. This event is raised when there was
a change in source data, so only relevant for dynamic data. The fetches triggered by viewport
changes do not depend on it.
Declaration
public event EventHandler<FetchRequestedEventArgs>? FetchRequested
Event Type
Implements
Extension Methods