I try to add the symbols obtained from the map layers in a div, I'm using symbolPreview does not give any errors but does not add the symbols in the div.
What is wrong?
var symbol = drawingInfo.renderer; symbolPreview.renderPreviewHTML(symbol, { node: document.getElementById(nombreImg), size: 12, opacity: 1 });