Layers.attribution
configurationThe 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|Objectlayers.attribution.encoded
BooleanSpecifies whether the attribution text is HTML-encoded. Set to false to render the text as trusted HTML.
Security Warning: Use
encoded: falseonly with trusted content. Rendering unsanitized input can lead to Cross-Site Scripting (XSS) vulnerabilities.
Default: true
layers.attribution.text
StringThe attribution text.