Map
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Map : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseMap
Implements:
Inherited Members
Constructors
public Map(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Properties
The configuration of built-in map controls.
public MapControlsSettings Controls { get; set; }
The default configuration for map layers by type.
public MapLayerDefaultsSettings LayerDefaults { get; set; }
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; set; }
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; set; }
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; }
public IUrlGenerator UrlGenerator { get; }
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
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: