MapLayerDefaultsBubbleSettingsBuilder
Methods
Attribution(System.String)
Defines the attribution for all Bubble layers.
Parameters
value - System.String
The value that configures the attribution.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Attribution("© Company Inc."));
})
)
Opacity(System.Double)
Sets the opacity of all Bubble layers.
Parameters
value - System.Double
The value that configures the opacity.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Opacity(0.5));
})
)
MaxSize(System.Double)
Sets the maximum symbol size for the Bubble layer symbols.
Parameters
value - System.Double
The value that configures the maximum symbol size.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.MaxSize(50));
})
)
MinSize(System.Double)
Sets the minimum symbol size for the Bubble layer symbols.
Parameters
value - System.Double
The value that configures the minimum symbol size.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.MinSize(10));
})
)
Style(System.Action)
Defines the default style for the Bubble layer symbols.
Parameters
configurator - System.Action<MapLayerDefaultsBubbleStyleSettingsBuilder>
The action that configures the default style.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Style(style => style.Fill(fill => fill.Color("#00f"))));
})
)
Symbol(Kendo.Mvc.UI.MapSymbol)
Defines the default symbol for the Bubble layers.
Parameters
value - MapSymbol
The value that configures the default symbol.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Symbol(MapSymbol.Circle));
})
)
Symbol(System.String)
Defines the default symbol for the Bubble layers. The possible values are "circle" and "square".
Parameters
symbol - System.String
The value that configures the default symbol.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.Symbol("circle"));
})
)
SymbolHandler(System.String)
Sets a client-side function that will draw the default Bubble layer symbol.
Parameters
handler - System.String
The name of the JavaScript function that will draw the symbol.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Bubble(b => b.SymbolHandler("getDefaultSymbol"));
})
)
<script>
function getDefaultSymbol(data) {
...//return kendo.drawing.Shape
}
</script>