Map
Kendo UI Map component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Map : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseMap
Implements:
Inherited Members
Constructors
Initializes a new instance of the Map class.
Properties
The map center. Coordinates are listed as [Latitude, Longitude].
public double[] Center { get; set; }
The configuration of built-in map controls.
public MapControlsSettings Controls { get; }
The default configuration for map layers by type.
public MapLayerDefaultsSettings LayerDefaults { get; }
The configuration of the map layers. The layer type is determined by the value of the type field.
public List<MapLayer> Layers { get; set; }
The default options for all markers.
public MapMarkerDefaultsSettings MarkerDefaults { get; }
Static markers to display on the map.
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).
public double? MaxZoom { get; set; }
Allows localization of the strings that are used in the widget.
public MapMessagesSettings Messages { get; }
The size of the map in pixels at zoom level 0.
public double? MinSize { get; set; }
The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
public double? MinZoom { get; set; }
Specifies whether the map should wrap around the east-west edges.
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
public double? Zoom { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: