MapLayerTagHelper

Example

Razor
<layer>
    <datasource></datasource>
    <map-style></map-style>
    <tooltip></tooltip>
    <url-template></url-template>
</layer>

ChildTags

Attributes

AttributeTypeDescription
attributionStringThe attribution for the layer. Accepts valid HTML.
auto-bindBooleanIf 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.
cultureStringThe culture to be used for the bing map tiles.
datasourceDataSourceTagHelperThe Grid data source configuration
datasource-idString
extentDouble[]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.
imagery-setMapLayersImagerySetThe bing map tile types. Possible options.
keyStringThe API key for the layer. Currently supported only for Bing (tm) tile layers.
location-fieldStringThe 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.
max-sizeDoubleThe maximum symbol size for bubble layer symbols.
max-zoomDoubleThe maximum zoom level at which to show this layer.
min-sizeDoubleThe minimum symbol size for bubble layer symbols.
min-zoomDoubleThe minimum zoom level at which to show this layer.
opacityDoubleThe the opacity for the layer.
shapeMapMarkersShapeThe default marker shape for all marker layers. Marker shapes are implemented as CSS classes on the marker element (span.k-marker). For example "pinTarget" is rendered as "k-marker-pin-target.
styleMapStyleSettingsTagHelper
subdomainsString[]A list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.
symbolMapSymbolThe default symbol for bubble layers
symbol-handlerStringThe default symbol for bubble layers
tile-sizeDoubleThe size of the image tile in pixels.
title-fieldStringThe data item field which contains the marker title. Requires the dataSource option to be set.
tooltipMapTooltipTagHelper
typeMapLayerTypeThe layer type. Supported types are "tile", "bing", "shape", "marker" and "bubble".
url-templateStringThe 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.
url-template-handlerStringThe 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.
url-template-idStringThe 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.
url-template-viewIHtmlContentThe 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.
value-fieldStringThe value field for bubble layer symbols. The data item field should be a number.
z-indexDoubleThe zIndex for this layer.Layers are normally stacked in declaration order (last one is on top).
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support