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

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


             @(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


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

In this article
Not finding the help you need?