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

MapLayerDefaultsShapeStyleSettingsBuilder

Methods

Fill(System.Action)

Defines the default fill options for the Shape layers.

Parameters

configurator - System.Action<MapLayerDefaultsShapeStyleFillSettingsBuilder>

The action that configures the fill settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Shape(shape => shape.Style(style => style.Fill(fill => fill.Color("red").Opacity(0.8))));
                })
             )

Stroke(System.Action)

Defines the default stroke options the Shape layers.

Parameters

configurator - System.Action<MapLayerDefaultsShapeStyleStrokeSettingsBuilder>

The action that configures the stroke settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Shape(shape => shape.Style(style => style.Stroke(stroke => stroke.Color("green").Opacity(0.5))));
                })
             )

In this article
Not finding the help you need?