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("© 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("© 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("© 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"));
})
)