MapLayerDefaultsShapeStyleStrokeSettingsBuilder
Methods
Color(System.String)
Defines the default stroke color for the Shape layers. 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.Stroke(stroke => stroke.Color("green"))));
})
)
DashType(System.String)
Defines the default dash type for the Shape layers. The supported dash types are: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.
Parameters
value - System.String
The value that configures the dash type.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.DashType("longDashDot"))));
})
)
Opacity(System.Double)
Defines the default stroke 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.Stroke(stroke => stroke.Opacity(0.8))));
})
)
Width(System.Double)
Defines the default stroke width for the Shape layers.
Parameters
value - System.Double
The value that configures the width.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.Width(5))));
})
)