ValueMarkerStyle¶
Namespace: ThinkGeo.UI.Blazor
Represents a style for displaying markers based on a specified value.
public class ValueMarkerStyle : MarkerStyle
Inheritance Object → MarkerStyle → ValueMarkerStyle
Properties¶
ValueItems¶
Gets the collection of ValueItems. Each item can have a value to match.
public Collection<MarkerValueItem> ValueItems { get; }
Property Value¶
Collection<MarkerValueItem>
A collection of ValueItems.
Remarks:
You will want to add MarkerValueItems to this collection. Each item can have its own style and matching string.
ColumnName¶
Gets or sets the column name used to match with the value specified in the items.
public string ColumnName { get; set; }
Property Value¶
String
The column name used to match with the value specified in the items.
Remarks:
This is the column whose values we will use for matching.
IsActive¶
This property gets and sets the active status of the style.
public bool IsActive { get; set; }
Property Value¶
Boolean
This property gets the active status of the style.
Remarks:
If the style is not active then it will not draw.
RequiredColumnNames¶
This property gets the collection of fields that are required for the style.
public Collection<string> RequiredColumnNames { get; }
Property Value¶
This property gets the collection of fields that are required for the
style.
Remarks:
This property gets the collection of fields that are required for the style. These are in addition to any other columns you specify in styles that inherit from this one. For example, if you have use a ValueStyle and it requires a column name for the value comparison, then that column does not need to be in this collection. You only use the RequiredColumnNames for columns you need beyond those required by specific inherited styles.
Constructors¶
ValueMarkerStyle()¶
Initialize a new instance of the ValueMarkerStyle class.
public ValueMarkerStyle()
ValueMarkerStyle(String)¶
Initialize a new instance of the ValueMarkerStyle class with the columnName specified.
public ValueMarkerStyle(string columnName)
Parameters¶
columnName
String
The column name used to match with the value specified in the items.
ValueMarkerStyle(String, Collection<MarkerValueItem>)¶
Initialize a new instance of the ValueMarkerStyle class with the columnName and a collection of valueItems specified.
public ValueMarkerStyle(string columnName, Collection<MarkerValueItem> valueItems)
Parameters¶
columnName
String
The column name used to match with the value specified in the items.
valueItems
Collection<MarkerValueItem>
A collection of valueItems that defines the style applied to markers.
Methods¶
GetMarkers(IEnumerable<Feature>)¶
public Collection<Marker> GetMarkers(IEnumerable<Feature> features)
Parameters¶
features
IEnumerable<Feature>