Class BaseFeature
Inherited Members
Namespace: Mapsui.Layers
Assembly: Mapsui.dll
Syntax
public abstract class BaseFeature : IFeature, ICloneable
Constructors
| Edit this page View SourceBaseFeature()
Declaration
protected BaseFeature()
BaseFeature(BaseFeature)
Declaration
protected BaseFeature(BaseFeature baseFeature)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseFeature | baseFeature |
BaseFeature(BaseFeature, long)
Declaration
protected BaseFeature(BaseFeature baseFeature, long id)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseFeature | baseFeature | |
| long | id |
BaseFeature(long)
Declaration
protected BaseFeature(long id)
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Properties
| Edit this page View SourceData
Object to store additional data.
Declaration
public object? Data { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Extent
Extent of the feature.
Declaration
public abstract MRect? Extent { get; }
Property Value
| Type | Description |
|---|---|
| MRect |
Fields
Keys used to store information for feature.
Declaration
public IEnumerable<string> Fields { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
GenerationId
Gets the generation identifier for this feature instance. This changes when Modified() is called to signal that cached drawables should be invalidated. By default, returns the same value as Id.
Declaration
public long GenerationId { get; }
Property Value
| Type | Description |
|---|---|
| long |
Id
Unique Id for feature.
Declaration
public long Id { get; }
Property Value
| Type | Description |
|---|---|
| long |
this[string]
Additional data that can be stored under specific keys.
Declaration
public virtual object? this[string key] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Key used to store or retrieve specific data fields. |
Property Value
| Type | Description |
|---|---|
| object |
Styles
Styles used for this feature
Declaration
public ICollection<IStyle> Styles { get; set; }
Property Value
| Type | Description |
|---|---|
| ICollection<IStyle> |
Methods
| Edit this page View SourceClone()
Creates a new object that is a copy of the current instance.
Declaration
public abstract object Clone()
Returns
| Type | Description |
|---|---|
| object | A new object that is a copy of this instance. |
CoordinateVisitor(Action<double, double, CoordinateSetter>)
Implementation of visitor pattern for coordinates
Declaration
public abstract void CoordinateVisitor(Action<double, double, CoordinateSetter> visit)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<double, double, CoordinateSetter> | visit | Function for visiting each coordinate X or Y value |
Modified()
Function to call whenever something changes in settings of feature.
Declaration
public virtual void Modified()