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

Defines the fluent API for configuring the MapLayerDefaultsBubbleStyleStrokeSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MapLayerDefaultsBubbleStyleStrokeSettingsBuilder

Inheritance: objectMapLayerDefaultsBubbleStyleStrokeSettingsBuilder

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

Constructors

C#
public MapLayerDefaultsBubbleStyleStrokeSettingsBuilder(MapLayerDefaultsBubbleStyleStrokeSettings settings)
Parameters:settingsMapLayerDefaultsBubbleStyleStrokeSettings

Methods

Defines the default stroke color for the Bubble layer symbols. Accepts a valid CSS color string, including HEX and Rgb.

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

The value that configures the color.

Returns:

MapLayerDefaultsBubbleStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.Color("green"))));
})
)

Defines the default dash type for the Bubble layer symbols. 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 MapLayerDefaultsBubbleStyleStrokeSettingsBuilder DashType(string value)
Parameters:valuestring

The value that configures the dash type.

Returns:

MapLayerDefaultsBubbleStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.DashType("longDashDot"))));
})
)

Defines the default stroke opacity (0 to 1) for the Bubble layer symbols.

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

The value that configures the opacity.

Returns:

MapLayerDefaultsBubbleStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.Opacity(0.5))));
})
)

Defines the default stroke width for the Bubble layer symbols.

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

The value that configures the width.

Returns:

MapLayerDefaultsBubbleStyleStrokeSettingsBuilder

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.Width(4))));
})
)