Class EqualColorMapping
Represents the equal color mapping.
Inherited Members
Namespace: Syncfusion.Maui.Maps
Assembly: Syncfusion.Maui.Maps.dll
Syntax
public class EqualColorMapping : ColorMapping
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapShapeLayer x:Name="layer"
ShapesSource="https://cdn.syncfusion.com/maps/map-data/world-map.json"
ShapeFill="Gray"
ShapeStroke="White"
ShapeStrokeThickness="2"
DataSource="{Binding WorldPopulationDensity}"
ShapeDataField="name"
PrimaryValuePath="CountryName"
ShapeColorValuePath="CountryName">
<map:MapShapeLayer.ColorMappings>
<map:EqualColorMapping Color="#809fff" Value="China" Text="China" />
</map:MapShapeLayer.ColorMappings>
</map:MapShapeLayer>
</map:SfMaps.Layer>
</map:SfMaps>
Constructors
EqualColorMapping()
Declaration
public EqualColorMapping()
Fields
ValueProperty
Identifies the Value bindable property.
Declaration
public static readonly BindableProperty ValueProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Value bindable property. |
Properties
Value
Gets or sets value for the equal color mapping.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String | The value for the equal color mapping. The default is |
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapShapeLayer x:Name="layer"
ShapesSource="https://cdn.syncfusion.com/maps/map-data/world-map.json"
ShapeFill="Gray"
ShapeStroke="White"
ShapeStrokeThickness="2"
DataSource="{Binding WorldPopulationDensity}"
ShapeDataField="name"
PrimaryValuePath="CountryName"
ShapeColorValuePath="CountryName">
<map:MapShapeLayer.ColorMappings>
<map:EqualColorMapping Color="#809fff" Value="China" Text="China" />
</map:MapShapeLayer.ColorMappings>
</map:MapShapeLayer>
</map:SfMaps.Layer>
</map:SfMaps>