MapLayerDefaultsShapeStyleFillSettingsBuilder
Methods
Color(System.String)
Defines the default fill color for the Shape layers. The option accepts a valid CSS color string, including HEX and Rgb.
Parameters
value - System.String
The value that configures the color.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Fill(fill => fill.Color("red"))));
})
)
Opacity(System.Double)
Defines the default fill opacity (0 to 1) for the Shape layers.
Parameters
value - System.Double
The value that configures the opacity.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Fill(fill => fill.Opacity(0.8))));
})
)