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
Constructors
| Edit this page View SourceMemoryLayer()
Create a new layer
Declaration
public MemoryLayer()
MemoryLayer(string)
Create layer with name
Declaration
public MemoryLayer(string layerName)
Parameters
Type | Name | Description |
---|---|---|
string | layerName | Name to use for layer |
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> |
Methods
| 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? rect, double resolution)
Parameters
Type | Name | Description |
---|---|---|
MRect | rect | |
double | resolution | Resolution of viewport |
Returns
Type | Description |
---|---|
IEnumerable<IFeature> |