MapLayerDefaultsShapeStyleFillSettingsBuilder
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 MapLayerDefaultsShapeStyleFillSettingsBuilder instance.
Example
Razor
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Fill(fill => fill.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 MapLayerDefaultsShapeStyleFillSettingsBuilder instance.
Example
Razor
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Fill(fill => fill.Opacity(0.8))));
})
)