MapBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET MVC Map.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MapBuilder : WidgetBuilderBase<Map, MapBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Map, MapBuilder>MapBuilder
Implements:
Inherited Members
Constructors
Methods
Defines the configuration of built-in Map controls.
public MapBuilder Controls(Action<MapControlsSettingsBuilder> configurator)
The action that configures the controls settings.
Returns:Configures the handled client-side events of the Map.
public MapBuilder Events(Action<MapEventBuilder> configurator)
The action that configures the available events.
Returns:Defines the default configuration for the Map layers by type.
public MapBuilder LayerDefaults(Action<MapLayerDefaultsSettingsBuilder> configurator)
The action that configures the default layer options.
Returns:Defines 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 action that configures the layers options.
Returns:Defines the default options for all markers.
public MapBuilder MarkerDefaults(Action<MapMarkerDefaultsSettingsBuilder> configurator)
The action that configures the default marker options.
Returns:Defines the configuration of the Map markers.
public MapBuilder Markers(Action<MapMarkerFactory> configurator)
The action that configures the markers.
Returns:The maximum zoom level. The typical web maps use zoom levels from 0 (the whole world) to 19 (sub-meter features).
public MapBuilder MaxZoom(double value)
The value that configures the maximum zoom level.
Returns:Allows localization of the strings that are used in the widget.
public MapBuilder Messages(Action<MapMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Sets the size of the Map in pixels at zoom level 0.
public MapBuilder MinSize(double value)
The value that configures the size.
Returns:Configures the minimum zoom level. The typical web maps use zoom levels from 0 (the whole world) to 19 (sub-meter features).
public MapBuilder MinZoom(double value)
The value that configures the minimum zoom level.
Returns:Specifies whether the map can be panned by the user.
public MapBuilder Pannable(bool value)
The value that enables or disables the pan feature.
Returns:Specifies whether the Map must wrap around the east-west edges.
public MapBuilder Wraparound(bool value)
The value that configures the wrap around option.
Returns:Defines the initial zoom level. The typical web maps use zoom levels from 0 (the 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 that configures the initial zoom level.
Returns:Controls whether the Map zoom level can be changed by the user.
public MapBuilder Zoomable(bool value)
The value that configures the Zoomable option.
Returns: