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

MapMarkerDefaultsSettingsBuilder

Methods

Shape(Kendo.Mvc.UI.MapMarkersShape)

Defines the default shape of the Markers.

Parameters

value - MapMarkersShape

The value that configures the default marker shape.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .MarkerDefaults(mdef =>
               {
                  mdef.Shape(MapMarkersShape.Pin);
                })
             )

Shape(System.String)

Defines the default marker shape. 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")
               .MarkerDefaults(mdef =>
               {
                  mdef.Shape("pinTarget");
                })
             )

Tooltip(System.Action)

Defines the default Tooltip component options for the Map markers.

Parameters

configurator - System.Action<MapMarkerTooltipBuilder>

The action that configures the tooltip settings.

Example


             @(Html.Kendo().Map()
               .Name("map")
               .MarkerDefaults(mdef =>
               {
                  mdef.Tooltip(tooltip => tooltip.Position(TooltipPosition.Top).AutoHide(true));
                })
             )

In this article
Not finding the help you need?