Class Layer
Implements
Inherited Members
Namespace: Mapsui.Layers
Assembly: Mapsui.dll
Syntax
public class Layer : BaseLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, IAsyncDataFetcher, ILayerDataSource<IProvider>
Constructors
| Edit this page View SourceLayer()
Create a new layer
Declaration
public Layer()
Layer(string)
Create layer with name
Declaration
public Layer(string layerName)
Parameters
Type | Name | Description |
---|---|---|
string | layerName | Name to use for layer |
Properties
| Edit this page View SourceAnimations
Declaration
public List<Func<bool>> Animations { get; }
Property Value
Type | Description |
---|---|
List<Func<bool>> |
DataSource
Data source for this layer
Declaration
public IProvider? DataSource { get; set; }
Property Value
Type | Description |
---|---|
IProvider |
Delayer
Declaration
public Delayer Delayer { get; }
Property Value
Type | Description |
---|---|
Delayer |
Extent
Returns the extent of the layer
Declaration
public override MRect? Extent { get; }
Property Value
Type | Description |
---|---|
MRect | Bounding box corresponding to the extent of the features in the layer |
Overrides
| Edit this page View SourceFetchingPostponedInMilliseconds
Time to wait before fetching data
Declaration
public int FetchingPostponedInMilliseconds { get; set; }
Property Value
Type | Description |
---|---|
int |
SymbolStyle
Declaration
public SymbolStyle? SymbolStyle { get; set; }
Property Value
Type | Description |
---|---|
SymbolStyle |
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()
GetFeatures(MRect, double)
Get all features in a given MRect for a given resolution
Declaration
public override IEnumerable<IFeature> GetFeatures(MRect extent, double resolution)
Parameters
Type | Name | Description |
---|---|---|
MRect | extent | Bounding 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 |
UpdateAnimations()
Declaration
public override bool UpdateAnimations()
Returns
Type | Description |
---|---|
bool | Returns true if animations are running and a graphics update is needed. |