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

MapLayerStyleSettingsBuilder

Methods

Fill(System.Action)

Defines the fill settings for the Shape layer.

Parameters

configurator - System.Action<MapLayerStyleFillSettingsBuilder>

The action that configures the fill settings.

Example


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

Stroke(System.Action)

Defines the stroke settings for the Shape layer.

Parameters

configurator - System.Action<MapLayerStyleStrokeSettingsBuilder>

The action that configures the stroke settings.

Example


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

In this article
Not finding the help you need?