MapLayerBuilder
Defines the fluent API for configuring MapLayer
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MapLayerBuilder
Inheritance: objectMapLayerBuilder
Inherited Members
Constructors
MapLayerBuilder method.
Properties
Methods
The attribution for the layer. String values are HTML-encoded by default. To render trusted HTML, pass an object with a text property and set encoded: false.
public MapLayerBuilder Attribution(Action<MapLayerAttributionSettingsBuilder> configurator)
The MapLayerAttributionSettingsBuilder for the attribution setting.
Returns:Returns the current instance of MapLayerBuilder .
The attribution for the layer. String values are HTML-encoded by default. To render trusted HTML, pass an object with a text property and set encoded: false.
public MapLayerBuilder Attribution(string attribution)
The attribution.
Returns:Returns the current instance of MapLayerBuilder .
If set to false the layer will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
public MapLayerBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current MapLayerBuilder instance.
The culture to be used for the bing map tiles.
public MapLayerBuilder Culture(string value)
The value for Culture
Returns:Returns the current MapLayerBuilder instance.
Defines the DataSource of the Map layer.
public MapLayerBuilder DataSource(Action<MapLayerDataSourceBuilder> configurator)
The action that configures of the DataSource settings.
Returns:Returns the current MapLayerBuilder instance.
Specifies the extent of the region covered by this 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 layer: North-West lat, longitude, South-East latitude, longitude.If not specified, the layer is always visible.
public MapLayerBuilder Extent(params double[] value)
The value for Extent
Returns:Returns the current MapLayerBuilder instance.
The bing map tile types. Possible options.
public MapLayerBuilder ImagerySet(MapLayersImagerySet value)
The value for ImagerySet
Returns:Returns the current MapLayerBuilder instance.
The API key for the layer. Currently supported only for Bing (tm) tile layers.
public MapLayerBuilder Key(string value)
The value for Key
Returns:Returns the current MapLayerBuilder instance.
The data item field which contains the marker (symbol) location. The field should be an array with two numbers - latitude and longitude in decimal degrees.Requires the dataSource option to be set.Only applicable to "marker" and "bubble" layers.
public MapLayerBuilder LocationField(string value)
The value for LocationField
Returns:Returns the current MapLayerBuilder instance.
The maximum symbol size for bubble layer symbols.
public MapLayerBuilder MaxSize(double value)
The value for MaxSize
Returns:Returns the current MapLayerBuilder instance.
The maximum zoom level at which to show this layer.
public MapLayerBuilder MaxZoom(double value)
The value for MaxZoom
Returns:Returns the current MapLayerBuilder instance.
The minimum symbol size for bubble layer symbols.
public MapLayerBuilder MinSize(double value)
The value for MinSize
Returns:Returns the current MapLayerBuilder instance.
The minimum zoom level at which to show this layer.
public MapLayerBuilder MinZoom(double value)
The value for MinZoom
Returns:Returns the current MapLayerBuilder instance.
The opacity for the layer.
public MapLayerBuilder Opacity(double value)
The value for Opacity
Returns:Returns the current MapLayerBuilder instance.
The marker shape. Supported shapes are "pin" and "pinTarget".
public MapLayerBuilder Shape(MapMarkersShape value)
The value for Shape
Returns:Returns the current MapLayerBuilder instance.
Sets the marker shape. The available shapes are "pin" and "pinTarget".
public MapLayerBuilder Shape(string name)
The name of the marker shape.
Returns:Returns the current MapLayerBuilder instance.
The default style for shapes.
public MapLayerBuilder Style(Action<MapLayerStyleSettingsBuilder> configurator)
The MapLayerStyleSettingsBuilder for the style setting.
Returns:Returns the current instance of MapLayerBuilder .
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[] value)
The value for Subdomains
Returns:Returns the current MapLayerBuilder instance.
The bubble layer symbol type. Supported symbols are "circle" and "square".
public MapLayerBuilder Symbol(MapSymbol value)
The value for Symbol
Returns:Returns the current MapLayerBuilder instance.
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:Returns the current MapLayerBuilder instance.
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:Returns the current MapLayerBuilder instance.
The size of the image tile in pixels.
public MapLayerBuilder TileSize(double value)
The value for TileSize
Returns:Returns the current MapLayerBuilder instance.
The data item field which contains the marker title. Requires the dataSource option to be set.
public MapLayerBuilder TitleField(string value)
The value for TitleField
Returns:Returns the current MapLayerBuilder instance.
Configures the Tooltip component options for data-bound markers.
public MapLayerBuilder Tooltip(Action<MapMarkerTooltipBuilder> configurator)
The action that configures the tooltip settings.
Returns:Returns the current MapLayerBuilder instance.
The layer type. Supported types are "tile", "bing", "shape", "marker" and "bubble".
public MapLayerBuilder Type(MapLayerType value)
The value for Type
Returns:Returns the current MapLayerBuilder instance.
The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.
public MapLayerBuilder UrlTemplate(string value)
The value for UrlTemplate
Returns:Returns the current MapLayerBuilder instance.
The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.
public MapLayerBuilder UrlTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the urltemplate.
Returns:Returns the current MapLayerBuilder instance.
The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.
public MapLayerBuilder UrlTemplateHandler(string templateHandler)
The handler that returs the template for UrlTemplate
Returns:Returns the current MapLayerBuilder instance.
The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.
public MapLayerBuilder UrlTemplateId(string templateId)
The ID of the template element for UrlTemplate
Returns:Returns the current MapLayerBuilder instance.
The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.
public MapLayerBuilder UrlTemplateView(IHtmlContent templateView)
The view that contains the template for UrlTemplate
Returns:Returns the current MapLayerBuilder instance.
The value field for bubble layer symbols. The data item field should be a number.
public MapLayerBuilder ValueField(string value)
The value for ValueField
Returns:Returns the current MapLayerBuilder instance.
The zIndex for this layer.Layers are normally stacked in declaration order (last one is on top).
public MapLayerBuilder ZIndex(double value)
The value for ZIndex
Returns:Returns the current MapLayerBuilder instance.