Class MemoryProvider
Implements
Inherited Members
Namespace: Mapsui.Providers
Assembly: Mapsui.dll
Syntax
public class MemoryProvider : IProvider
Constructors
| Edit this page View SourceMemoryProvider()
Gets or sets the geometries this data source contains
Declaration
public MemoryProvider()
MemoryProvider(IFeature)
Initializes a new instance of the MemoryProvider
Declaration
public MemoryProvider(IFeature feature)
Parameters
| Type | Name | Description |
|---|---|---|
| IFeature | feature | Feature to be in this dataSource |
MemoryProvider(IEnumerable<IFeature>)
Initializes a new instance of the MemoryProvider
Declaration
public MemoryProvider(IEnumerable<IFeature> features)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IFeature> | features | Features to be included in this dataSource |
Properties
| Edit this page View SourceCRS
The spatial reference ID (CRS)
Declaration
public string? CRS { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Features
Declaration
public IReadOnlyList<IFeature> Features { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<IFeature> |
SymbolSize
Declaration
public double SymbolSize { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
| Edit this page View SourceClear()
Declaration
public void Clear()
Find(object?, string)
Search for a feature
Declaration
public IFeature? Find(object? value, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | Value to search for |
| string | fieldName | Name of the field to search in. This is the key of the T dictionary |
Returns
| Type | Description |
|---|---|
| IFeature |
GetExtent()
BoundingBox of data set
Declaration
public MRect? GetExtent()
Returns
| Type | Description |
|---|---|
| MRect | BoundingBox |
GetFeaturesAsync(FetchInfo)
Declaration
public virtual Task<IEnumerable<IFeature>> GetFeaturesAsync(FetchInfo fetchInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| FetchInfo | fetchInfo |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<IFeature>> |