MapLayerDefaultsBubbleStyleStrokeSettingsBuilder
Methods
Color(System.String)
Defines the default stroke color for the Bubble layer symbols. 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")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.Color("green"))));
})
)
DashType(System.String)
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.
Parameters
value - System.String
The value that configures the dash type.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.DashType("longDashDot"))));
})
)
Opacity(System.Double)
Defines the default stroke opacity (0 to 1) for the Bubble layer symbols.
Parameters
value - System.Double
The value that configures the opacity.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.Opacity(0.5))));
})
)
Width(System.Double)
Defines the default stroke width for the Bubble layer symbols.
Parameters
value - System.Double
The value that configures the width.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Stroke(stroke => stroke.Width(4))));
})
)