Interface IFeature
Interface for a feature which could be displayed on the map.
Inherited Members
Namespace: Mapsui
Assembly: Mapsui.dll
Syntax
public interface IFeature : ICloneable
Properties
| Edit this page View SourceData
Object to store additional data.
Declaration
object? Data { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Extent
Extent of the feature.
Declaration
MRect? Extent { get; }
Property Value
| Type | Description |
|---|---|
| MRect |
Fields
Keys used to store information for feature.
Declaration
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
long GenerationId { get; }
Property Value
| Type | Description |
|---|---|
| long |
Id
Unique Id for feature.
Declaration
long Id { get; }
Property Value
| Type | Description |
|---|---|
| long |
this[string]
Additional data that can be stored under specific keys.
Declaration
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
ICollection<IStyle> Styles { get; }
Property Value
| Type | Description |
|---|---|
| ICollection<IStyle> |
Methods
| Edit this page View SourceClearRenderedGeometry()
Function to call if the rendered feature is invalid.
Declaration
void ClearRenderedGeometry()
CoordinateVisitor(Action<double, double, CoordinateSetter>)
Implementation of visitor pattern for coordinates
Declaration
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
void Modified()