RadialGradientMarkerStyle¶
Namespace: ThinkGeo.UI.Blazor
Represents a circular marker with a radial gradient that fades to transparent at its edge.
public class RadialGradientMarkerStyle : MarkerStyle
Inheritance object → MarkerStyle → RadialGradientMarkerStyle
Remarks:
Set RadialGradientMarkerStyle.RadiusInMapUnits when the radius represents a ground distance. In that case RadialGradientMarkerStyle.MinimumRadiusInPixel prevents the gradient from becoming too small at low zoom levels. Otherwise, use RadialGradientMarkerStyle.RadiusInPixel for a fixed screen size.
Properties¶
Color¶
Gets or sets the gradient color. Its alpha multiplies RadialGradientMarkerStyle.Opacity.
public GeoColor Color { get; set; }
Property Value¶
GeoColor
Opacity¶
Gets or sets the opacity at the center of the gradient. The value is in the range [0, 1].
public double Opacity { get; set; }
Property Value¶
RadiusInPixel¶
Gets or sets the radius in screen pixels when RadialGradientMarkerStyle.RadiusInMapUnits is zero.
public double RadiusInPixel { get; set; }
Property Value¶
RadiusInMapUnits¶
Gets or sets the radius in the map's coordinate units. A positive value takes precedence over RadialGradientMarkerStyle.RadiusInPixel and is recalculated as the map zoom changes.
public double RadiusInMapUnits { get; set; }
Property Value¶
MinimumRadiusInPixel¶
Gets or sets the minimum radius in screen pixels when RadialGradientMarkerStyle.RadiusInMapUnits is used.
public double MinimumRadiusInPixel { get; set; }
Property Value¶
MinimumRadiusInIconSizeMultiples¶
Gets or sets the minimum radius as a multiple of the size of a point-marker style in the same CompositeMarkerStyle. This is useful when a halo should grow and shrink with its icon. A value of zero disables this minimum.
public double MinimumRadiusInIconSizeMultiples { get; set; }
Property Value¶
IsActive¶
This property gets and sets the active status of the style.
public bool IsActive { get; set; }
Property Value¶
bool
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¶
RadialGradientMarkerStyle()¶
public RadialGradientMarkerStyle()
Methods¶
GetMarkers(IEnumerable<Feature>)¶
Creates markers for point or multipoint features using the configured gradient.
public Collection<Marker> GetMarkers(IEnumerable<Feature> features)
Parameters¶
features IEnumerable<Feature>
The features to convert into markers.
Returns¶
Collection<Marker>
A collection of markers generated from the supplied features.