New to Telerik UI for ASP.NET Core? Download free 30-day trial

MapLayerTagHelper

Example

<layer>
    <datasource></datasource>
    <map-style></map-style>
    <tooltip></tooltip>
</layer>

ChildTags

Tag Name Details
datasource DataSourceTagHelper
map-style MapStyleSettingsTagHelper
tooltip MapTooltipTagHelper

Attributes

Attribute Type Description
attribution String The attribution for the layer. Accepts valid HTML.
auto-bind Boolean 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.
culture String The culture to be used for the bing map tiles.
datasource DataSourceTagHelper The Grid data source configuration
datasource-id String
extent Double[] 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-set MapLayersImagerySet The bing map tile types. Possible options.
key String The API key for the layer. Currently supported only for Bing (tm) tile layers.
location-field String 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.
max-size Double The maximum symbol size for bubble layer symbols.
max-zoom Double The maximum zoom level at which to show this layer.
min-size Double The minimum symbol size for bubble layer symbols.
min-zoom Double The minimum zoom level at which to show this layer.
opacity Double The the opacity for the layer.
shape MapMarkersShape The 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.
style MapStyleSettingsTagHelper
subdomains String[] A list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.
symbol MapSymbol The default symbol for bubble layers
symbol-handler String The default symbol for bubble layers
tile-size Double The size of the image tile in pixels.
title-field String The data item field which contains the marker title. Requires the dataSource option to be set.
tooltip MapTooltipTagHelper
type MapLayerType The layer type. Supported types are "tile", "bing", "shape", "marker" and "bubble".
url-template String 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.
url-template-handler String 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.
url-template-id String 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.
url-template-view IHtmlContent 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.
value-field String The value field for bubble layer symbols. The data item field should be a number.
z-index Double The zIndex for this layer.Layers are normally stacked in declaration order (last one is on top).
In this article
Not finding the help you need?