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

Kendo UI tile TagHelper MapLayerDefaultsTileSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-map name="map">
    <layer-defaults>
        <tile attribution="Tiles attribution text"></tile>
    </layer-defaults>
</kendo-map>

Constructors

Initializes a new instance of the MapLayerDefaultsTileSettingsTagHelper class.

C#
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.

C#
[HtmlAttributeName("attribution")]
public string AttributionValue { get; set; }

The opacity of all tile layers.

C#
public double? Opacity { get; set; }

The subdomain of all tile layers.

C#
public string[] Subdomains { get; set; }

Configures the templates for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

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.

C#
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.

C#
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.

C#
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.

C#
public IHtmlContent UrlTemplateView { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>