Class MemoryLayer
The MemoryLayer has all features in memory.
Inherited Members
Namespace: Mapsui.Layers
Assembly: Mapsui.dll
Syntax
public class MemoryLayer : BaseLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable
Remarks
Create layer with name
Constructors
| Edit this page View SourceMemoryLayer()
Create a new layer
Declaration
public MemoryLayer()
MemoryLayer(string)
The MemoryLayer has all features in memory.
Declaration
public MemoryLayer(string layerName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | layerName | Name to use for layer |
Remarks
Create layer with name
Properties
| Edit this page View SourceExtent
Returns the envelope of all available data in the layer
Declaration
public override MRect? Extent { get; }
Property Value
| Type | Description |
|---|---|
| MRect |
Overrides
| Edit this page View SourceFeatures
Declaration
public IEnumerable<IFeature> Features { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IFeature> |
SortFeatures
Function to sort order of features for drawing
Declaration
public override Func<IEnumerable<IFeature>, IEnumerable<IFeature>> SortFeatures { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<IEnumerable<IFeature>, IEnumerable<IFeature>> |
Overrides
Methods
| Edit this page View SourceFeaturesWereModified()
Declaration
public void FeaturesWereModified()
GetFeatures(MRect?, double)
Get all features in a given MRect for a given resolution
Declaration
public override IEnumerable<IFeature> GetFeatures(MRect? rect, double resolution)
Parameters
| Type | Name | Description |
|---|---|---|
| MRect | rect | |
| double | resolution | Resolution of viewport |
Returns
| Type | Description |
|---|---|
| IEnumerable<IFeature> |