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

MapLayerDefaultsSettingsBuilder

Methods

Marker(System.Action)

Defines the default configuration for all Marker layers.

Parameters

configurator - System.Action<MapLayerDefaultsMarkerSettingsBuilder>

The action that configures the Marker layers settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Marker(m => m.Shape(MapMarkersShape.Pin).Opacity(0.5));
                })
             )

Shape(System.Action)

Defines the default configuration for all Shape layers.

Parameters

configurator - System.Action<MapLayerDefaultsShapeSettingsBuilder>

The action that configures the shape layers settings.

Example


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

Bubble(System.Action)

Defines the default configuration for all Bubble layers.

Parameters

configurator - System.Action<MapLayerDefaultsBubbleSettingsBuilder>

The action that configures the Bubble layers settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Bubble(b => b.Symbol(MapSymbol.Circle).Attribution("&copy; Company Inc."));
                })
             )

TileSize(System.Double)

Defines the default size of the image tile in pixels.

Parameters

value - System.Double

The value that configures the size of the image tile.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.TileSize(200);
                })
             )

Tile(System.Action)

Defines the default configuration for all Tile layers.

Parameters

configurator - System.Action<MapLayerDefaultsTileSettingsBuilder>

The action that configures the tile layer settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Tile(t => t.Opacity(0.8).Attribution("&copy; OpenStreetMap"));
                })
             )

Bing(System.Action)

Defines the default configuration for all Bing (tm) tile layers.

Parameters

configurator - System.Action<MapLayerDefaultsBingSettingsBuilder>

The action that configures the Bing layer settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .LayerDefaults(layerDef =>
               {
                  layerDef.Bing(b => b.Opacity(0.8).Key("API key"));
                })
             )

In this article
Not finding the help you need?