MapLayerStyleFillSettingsBuilder
Methods
Color(System.String)
The default fill color for layer shapes. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Color
RETURNS
Returns the current MapLayerStyleFillSettingsBuilder instance.
Example
Razor
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Fill(f => f.Color("red")));
})
)
Opacity(System.Double)
The default fill opacity (0 to 1) for layer shapes.
Parameters
value - System.Double
The value for Opacity
RETURNS
Returns the current MapLayerStyleFillSettingsBuilder instance.
Example
Razor
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Fill(f => f.Opacity(0.5)));
})
)