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

MapLayerDefaultsShapeSettingsBuilder

Methods

Attribution(System.String)

Defines the attribution for all Shape layers.

Parameters

value - System.String

The value that configures the default attribution.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Shape(shape => shape.Attribution("© Company Inc."));
                })
             )

Opacity(System.Double)

Defines the opacity of all Shape layers.

Parameters

value - System.Double

The value that configures the opacity.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Shape(shape => shape.Opacity(0.8));
                })
             )

Style(System.Action)

Defines the default style for all Shape layers.

Parameters

configurator - System.Action<MapLayerDefaultsShapeStyleSettingsBuilder>

The action that configures the style settings.

Example


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

In this article
Not finding the help you need?