Kendo UI tile TagHelper MapLayerDefaultsTileSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("tile", ParentTag = "layer-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("url-template", new string[] { "attribution" })]
[SuppressTagRendering]
public class MapLayerDefaultsTileSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseMapLayerDefaultsTileSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-map name="map">
<layer-defaults>
<tile attribution="Tiles attribution text"></tile>
</layer-defaults>
</kendo-map>
Child Tags
Constructors
Initializes a new instance of the MapLayerDefaultsTileSettingsTagHelper class.
public MapLayerDefaultsTileSettingsTagHelper()
Properties
The attribution of all tile layers. String values are HTML-encoded by default. To render trusted HTML, pass an object with a text property and set encoded: false.
[HtmlAttributeName("attribution")]
public string AttributionValue { get; set; }
The subdomain of all tile layers.
public string[] Subdomains { get; set; }
Configures the templates for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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 string UrlTemplate { get; set; }
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. This option expects the name of a JavaScript function that will be called to return the template.
public string UrlTemplateHandler { get; set; }
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. This option expects the ID of the script element that contains the template.
public string UrlTemplateId { get; set; }
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. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent UrlTemplateView { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.