MapLayerStyleFillSettingsBuilder

Methods

Color(System.String)

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

Parameters

value - System.String

The value that configures the color.

Example

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

Opacity(System.Double)

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

Parameters

value - System.Double

The value that configures the opacity.

Example

Razor
 
             @(Html.Kendo().Map()
               .Name("map")
               .Layers(layers =>
               {
                  layers.Add().Type(MapLayerType.Shape).Style(style =>style.Fill(f => f.Opacity(0.5)));
                })
             )
             
In this article
MethodsColor(System.String)Opacity(System.Double)
Not finding the help you need?
Contact Support