MapBuilder
Defines the fluent API for configuring the Kendo UI Map
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MapBuilder : WidgetBuilderBase<Map, MapBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Map, MapBuilder>MapBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapBuilder class.
Methods
The map center. Coordinates are listed as [Latitude, Longitude].
public MapBuilder Center(params double[] value)
The value for Center
Returns:Returns the current MapBuilder instance.
The configuration of built-in map controls.
public MapBuilder Controls(Action<MapControlsSettingsBuilder> configurator)
The MapControlsSettingsBuilder for the controls setting.
Returns:Returns the current instance of MapBuilder .
Configures the client-side events.
public MapBuilder Events(Action<MapEventBuilder> configurator)
The client events action.
Returns:Returns the current MapBuilder instance.
The default configuration for map layers by type.
public MapBuilder LayerDefaults(Action<MapLayerDefaultsSettingsBuilder> configurator)
The MapLayerDefaultsSettingsBuilder for the layerdefaults setting.
Returns:Returns the current instance of MapBuilder .
The configuration of the map layers. The layer type is determined by the value of the type field.
public MapBuilder Layers(Action<MapLayerFactory> configurator)
The MapLayerFactory for the layers setting.
Returns:Returns the current instance of MapBuilder .
The default options for all markers.
public MapBuilder MarkerDefaults(Action<MapMarkerDefaultsSettingsBuilder> configurator)
The MapMarkerDefaultsSettingsBuilder for the markerdefaults setting.
Returns:Returns the current instance of MapBuilder .
Static markers to display on the map.
public MapBuilder Markers(Action<MapMarkerFactory> configurator)
The MapMarkerFactory for the markers setting.
Returns:Returns the current instance of MapBuilder .
The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
public MapBuilder MaxZoom(double value)
The value for MaxZoom
Returns:Returns the current MapBuilder instance.
Allows localization of the strings that are used in the widget.
public MapBuilder Messages(Action<MapMessagesSettingsBuilder> configurator)
The MapMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of MapBuilder .
The size of the map in pixels at zoom level 0.
public MapBuilder MinSize(double value)
The value for MinSize
Returns:Returns the current MapBuilder instance.
The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
public MapBuilder MinZoom(double value)
The value for MinZoom
Returns:Returns the current MapBuilder instance.
Controls whether the user can pan the map.
public MapBuilder Pannable(bool value)
The value for Pannable
Returns:Returns the current MapBuilder instance.
Specifies whether the map should wrap around the east-west edges.
public MapBuilder Wraparound(bool value)
The value for Wraparound
Returns:Returns the current MapBuilder instance.
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 MapBuilder Zoom(double value)
The value for Zoom
Returns:Returns the current MapBuilder instance.
Controls whether the map zoom level can be changed by the user.
public MapBuilder Zoomable(bool value)
The value for Zoomable
Returns:Returns the current MapBuilder instance.