The HTML element to display in the print layout, or null to clear it
if html is not an HTMLElement or null
// Add custom content
const content = document.createElement("div")
content.innerHTML = `
<svg width="120" height="60" viewBox="0 0 120 60">
<rect width="120" height="60" fill="white" />
<circle cx="30" cy="30" r="20" fill="red" />
</svg>
`
JMap.Application.Print.setCustomContent(content)
// Clear custom content
JMap.Application.Print.setCustomContent(null)
JMap.Application.Print.setCustomContent
Sets the custom HTML content displayed in the print layout, in the available area left by the print legend.
The custom content is displayed top-right aligned. Pass null to clear the custom content.