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

Defines the fluent API for configuring the MapLayerStyleFillSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MapLayerStyleFillSettingsBuilder

Inheritance: objectMapLayerStyleFillSettingsBuilder

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

Constructors

C#
public MapLayerStyleFillSettingsBuilder(MapLayerStyleFillSettings settings)
Parameters:settingsMapLayerStyleFillSettings

Methods

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

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

The value that configures the color.

Returns:

MapLayerStyleFillSettingsBuilder

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

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

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

The value that configures the opacity.

Returns:

MapLayerStyleFillSettingsBuilder

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