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