MapLayerStyleStrokeSettingsBuilder

Methods

Color(System.String)

The default stroke 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 MapLayerStyleStrokeSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().Map()
               .Name("map")
               .Layers(layers =>
               {
                  layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Color("green")));
                })
             )
             

DashType(System.Double)

The default dash type for layer shapes. The following dash types are supported: "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 for DashType

RETURNS

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().Map()
               .Name("map")
               .Layers(layers =>
               {
                  layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.DashType("dashDot")));
                })
             )
             

Opacity(System.Double)

The default stroke opacity (0 to 1) for layer shapes.

Parameters

value - System.Double

The value for Opacity

RETURNS

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().Map()
               .Name("map")
               .Layers(layers =>
               {
                  layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Opacity(0.8)));
                })
             )
             

Width(System.Double)

The default stroke width for layer shapes.

Parameters

value - System.Double

The value for Width

RETURNS

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().Map()
               .Name("map")
               .Layers(layers =>
               {
                  layers.Add().Type(MapLayerType.Shape).Style(style =>style.Stroke(f => f.Width(5)));
                })
             )