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

Map

Class

Definition

Constructors

C#
public Map(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContextinitializerIJavaScriptInitializerurlGeneratorIUrlGenerator

Properties

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

The configuration of built-in map controls.

C#
public MapControlsSettings Controls { get; set; }

The default configuration for map layers by type.

C#
public MapLayerDefaultsSettings LayerDefaults { get; set; }

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; set; }

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; set; }

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; }
C#
public IUrlGenerator UrlGenerator { get; }

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

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)