New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the MapLayerStyleStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MapLayerStyleStrokeSettingsBuilder

Inheritance: objectMapLayerStyleStrokeSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public MapLayerStyleStrokeSettingsBuilder(MapLayerStyleStrokeSettings settings)
Parameters:settingsMapLayerStyleStrokeSettings

Methods

Defines the stroke color for the Shape layer. The option accepts a valid CSS color string, including HEX and Rgb.

C#
public MapLayerStyleStrokeSettingsBuilder Color(string value)
Parameters:valuestring

The value that configures the color.

Returns:

MapLayerStyleStrokeSettingsBuilder

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

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.

C#
public MapLayerStyleStrokeSettingsBuilder DashType(double value)
Parameters:valuedouble

The value that configures the dash type.

Returns:

MapLayerStyleStrokeSettingsBuilder

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

Defines the stroke opacity (0 to 1) for the Shape layer.

C#
public MapLayerStyleStrokeSettingsBuilder Opacity(double value)
Parameters:valuedouble

The value that configures the opacity.

Returns:

MapLayerStyleStrokeSettingsBuilder

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

Defines the stroke width for the Shape layer.

C#
public MapLayerStyleStrokeSettingsBuilder Width(double value)
Parameters:valuedouble

The value that configures the width.

Returns:

MapLayerStyleStrokeSettingsBuilder

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