MapLayerBuilder
Defines the fluent API for configuring the MapLayer settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MapLayerBuilder
Inheritance: objectMapLayerBuilder
Inherited Members
Constructors
Methods
Defines the attribution for the layer. Accepts valid HTML.
public MapLayerBuilder Attribution(string value)
The value that configures the attribution.
Returns:If set to "false", the layer will not bind to the DataSource during the initialization. In this case, the data binding will occur when the Change event of the DataSource fires. By default, the Map will bind to its DataSource.
public MapLayerBuilder AutoBind(bool value)
The value that configures the AutoBind option.
Returns:Defines the culture for the Bing map tiles.
public MapLayerBuilder Culture(string value)
The value that configures the culture.
Returns:Defines the DataSource of the Map layer.
public MapLayerBuilder DataSource(Action<MapLayerDataSourceBuilder> configurator)
The action that configures of the DataSource settings.
Returns:Specifies the extent of the region covered by the layer. The layer will be hidden when the specified area is out of view. Accepts a four-element array that specifies the extent covered by this the: North-West latitude, longitude, South-East latitude, longitude. If not specified, the layer is always visible.
public MapLayerBuilder Extent(params double[] value)
The value that configures the extent option.
Returns:Sets the type of tiles in the Bing Map.
public MapLayerBuilder ImagerySet(MapLayersImagerySet value)
The value that configures the type of the Bing map tiles.
Returns:Sets the API key for the layer. Currently, the option is supported only for Bing (tm) tile layers.
public MapLayerBuilder Key(string value)
The value that configures the API key.
Returns:Defines the data item field that contains the marker (symbol) location. The field must be an array with two numbers - latitude and longitude in decimal degrees. It is required to define a DataSource for the layer. The option is applicable only to Marker and Bubble layers.
public MapLayerBuilder LocationField(string value)
The value that configures the location field.
Returns:Sets the maximum symbol size for Bubble layer symbols.
public MapLayerBuilder MaxSize(double value)
The value that configures the maximum symbol size.
Returns:Sets the maximum zoom level at which to show the layer.
public MapLayerBuilder MaxZoom(double value)
The value that configures the maximum zoom level.
Returns:Sets the minimum symbol size for the Bubble layer symbols.
public MapLayerBuilder MinSize(double value)
The value that configures the minimum symbol size.
Returns:Sets the minimum zoom level at which to show the layer.
public MapLayerBuilder MinZoom(double value)
The value that configures the minimum zoom level.
Returns:Defines the opacity for the layer.
public MapLayerBuilder Opacity(double value)
The value that configures the opacity.
Returns:Sets the marker shape. The available shapes are "Pin" and "PinTarget".
public MapLayerBuilder Shape(MapMarkersShape value)
The enum value that configures the shape.
Returns:Sets the marker shape. The available shapes are "pin" and "pinTarget".
public MapLayerBuilder Shape(string name)
The name of the marker shape.
Returns:Configures the default style for shapes.
public MapLayerBuilder Style(Action<MapLayerStyleSettingsBuilder> configurator)
The action that configures the style settings.
Returns:Defines a list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.
public MapLayerBuilder Subdomains(params string[] subdomains)
The array of subdomains
Returns:Defines the Bubble layer symbol type. The possible values are "Circle" and "Square".
public MapLayerBuilder Symbol(MapSymbol value)
The enum value that configures the symbol.
Returns:Defines the Bubble layer symbol type. The possible values are "circle" and "square".
public MapLayerBuilder Symbol(string symbol)
The value that configures the symbol type.
Returns:Sets a client-side function that will draw the Bubble layer symbol type.
public MapLayerBuilder SymbolHandler(string handler)
The name of the JavaScript function that will draw the symbol.
Returns:Sets the size of the image tile in pixels.
public MapLayerBuilder TileSize(double value)
The value that configures the tile size.
Returns:Defines the data item field that contains the marker title. It is required to define a DataSource for the layer.
public MapLayerBuilder TitleField(string value)
The value that configures the title field.
Returns:Configures the Tooltip component options for data-bound markers.
public MapLayerBuilder Tooltip(Action<MapMarkerTooltipBuilder> configurator)
The action that configures the tooltip settings.
Returns:Defines the layer type.
public MapLayerBuilder Type(MapLayerType value)
The enum value that configures the type of the layer.
Returns:Defines the URL template for tile layers. The template variables are: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile.
public MapLayerBuilder UrlTemplate(string value)
The value that configures the tile layer URL template.
Returns:Defines the URL template for tile layers. The template variables are: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile.
public MapLayerBuilder UrlTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the urltemplate.
Returns:Defines the URL template for tile layers. The template variables are: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile.
public MapLayerBuilder UrlTemplateHandler(string value)
The value that configures the tile layer URL template.
Returns:Defines the URL template for tile layers. The template variables are: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile.
public MapLayerBuilder UrlTemplateId(string value)
The value that configures the tile layer URL template.
Returns:Defines the URL template for tile layers. The template variables are: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile.
public MapLayerBuilder UrlTemplateView(MvcHtmlString value)
The value that configures the tile layer URL template.
Returns:Defines the value field for Bubble layer symbols. The data item field must be a number.
public MapLayerBuilder ValueField(string value)
The value that configures the value field.
Returns:Defines the z-index for the layer. The layers are normally stacked in a declaration order (the last one is on top).
public MapLayerBuilder ZIndex(double value)
The value that configures the z-index of the layer.
Returns: