New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Map

Class

Kendo UI Map component

Definition

Constructors

Initializes a new instance of the Map class.

C#
public Map(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

The map center. Coordinates are listed as [Latitude, Longitude].

C#
public double[] Center { get; set; }

The configuration of built-in map controls.

C#
public MapControlsSettings Controls { get; }

The default configuration for map layers by type.

C#
public MapLayerDefaultsSettings LayerDefaults { get; }

The configuration of the map layers. The layer type is determined by the value of the type field.

C#
public List<MapLayer> Layers { get; set; }

The default options for all markers.

C#
public MapMarkerDefaultsSettings MarkerDefaults { get; }

Static markers to display on the map.

C#
public List<MapMarker> Markers { get; set; }

The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).

C#
public double? MaxZoom { get; set; }

Allows localization of the strings that are used in the widget.

C#
public MapMessagesSettings Messages { get; }

The size of the map in pixels at zoom level 0.

C#
public double? MinSize { get; set; }

The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).

C#
public double? MinZoom { get; set; }

Controls whether the user can pan the map.

C#
public bool? Pannable { get; set; }

Specifies whether the map should wrap around the east-west edges.

C#
public bool? Wraparound { get; set; }

The initial zoom level.Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).The map size is derived from the zoom level and minScale options: size = (2 ^ zoom) * minSize

C#
public double? Zoom { get; set; }

Controls whether the map zoom level can be changed by the user.

C#
public bool? Zoomable { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)