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

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

Razor
 
             @(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
MethodsFill(System.Action)Stroke(System.Action)
Not finding the help you need?
Contact Support