MapLayerStyleStrokeSettingsBuilder
Methods
Color(System.String)
Defines the stroke color for the Shape layer. 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")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Color("green")));
})
)
DashType(System.Double)
Defines the dash type for the Shape layer. 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.Double
The value that configures the dash type.
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.DashType("dashDot")));
})
)
Opacity(System.Double)
Defines the stroke opacity (0 to 1) for the Shape layer.
Parameters
value - System.Double
The value that configures the opacity.
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Opacity(0.8)));
})
)
Width(System.Double)
Defines the stroke width for the Shape layer.
Parameters
value - System.Double
The value that configures the width.
Example
@(Html.Kendo().Map()
.Name("map")
.Layers(layers =>
{
layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Width(5)));
})
)