New to Kendo UI for jQuery? Start a free 30-day trial

Layers.attribution

configuration

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.

Attribution supplied by remote providers, such as Bing, is HTML-encoded before it is rendered.

layers.attribution

String|Object
<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "OpenStreetMap"
        }]
    });
</script>
<div id="map"></div>
<script>
    $("#map").kendoMap({
        layers: [{
            type: "tile",
            urlTemplate: "https://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: {
                text: "<a href='https://openstreetmap.org'>OpenStreetMap</a>",
                encoded: false
            }
        }]
    });
</script>

Specifies whether the attribution text is HTML-encoded. Set to false to render the text as trusted HTML.

Security Warning: Use encoded: false only with trusted content. Rendering unsanitized input can lead to Cross-Site Scripting (XSS) vulnerabilities.

Default: true

The attribution text.