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

Defines the fluent API for configuring MapLayerStyleStrokeSettings

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

MapLayerStyleStrokeSettingsBuilder method.

C#
public MapLayerStyleStrokeSettingsBuilder(MapLayerStyleStrokeSettings container)
Parameters:containerMapLayerStyleStrokeSettings

Properties

Gets the settings being configured.

C#
protected MapLayerStyleStrokeSettings Container { get; }

Methods

The default stroke color for layer shapes. Accepts a valid CSS color string, including hex and rgb.

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

The value for Color

Returns:

MapLayerStyleStrokeSettingsBuilder

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

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

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.

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

The value for DashType

Returns:

MapLayerStyleStrokeSettingsBuilder

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

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

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

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

The value for Opacity

Returns:

MapLayerStyleStrokeSettingsBuilder

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

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

The default stroke width for layer shapes.

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

The value for Width

Returns:

MapLayerStyleStrokeSettingsBuilder

Returns the current MapLayerStyleStrokeSettingsBuilder instance.

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