First of all thanks for your help.
I'm using html2canvas to get an image of my app web and share it in social networks. In the app there is a leaflet map with a canvas layer but the result image is incomplete. I put option L_PREFER_CANVAS = true;
to force canvas in leaflet map. I also have used leaflet image plugin but it only return the base map and I need legend too.
Thanks so much.
In js
html2canvas(document.body, {
allowTaint : false,
logging : true,
taintTest: false,
useCORS: true,
onrendered: function(canvas) {
// canvas is the final rendered <canvas> element
dataURL = canvas.toDataURL("image/png");
console.info(dataURL);
window.open(dataURL);
}
});
Log