MapLayerDefaultsMarkerSettingsBuilder
Methods
Opacity(System.Double)
Defines the opacity of all Marker layers.
Parameters
value - System.Double
The value that configures the opacity.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Marker(m => m.Opacity(0.5));
})
)
Shape(Kendo.Mvc.UI.MapMarkersShape)
Defines the default marker shape for all Marker layers. The available shapes are "Pin" and "PinTarget".
Parameters
value - MapMarkersShape
The enum value that configures the marker shape.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Marker(m => m.Shape(MapMarkersShape.Pin));
})
)
Shape(System.String)
Defines the default marker shape for all Marker layers. The available shapes are "pin" and "pinTarget".
Parameters
name - System.String
The name of the marker shape.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Marker(m => m.Shape("pin"));
})
)
Tooltip(System.Action)
Defines the default tooltip options for all Marker layers.
Parameters
configurator - System.Action<MapMarkerTooltipBuilder>
The action that configures the tooltip settings.
Example
@(Html.Kendo().Map()
.Name("map")
.LayerDefaults(layerDef =>
{
layerDef.Marker(m => m.Tooltip(tooltip => tooltip.Height(200).AutoHide(true)));
})
)