Hi!
When I print the map, the image does not appear for printing and I receive the warning "Unknown layer, cannot clone this layer. Leaflet version: " + L.version), console.info("For additional information please refer to documentation on: https://github.com/Igor-Vladyka/leaflet.browser.print.").
onMounted(() => {
mapHeight.value = parseInt(window.innerHeight - 166);
setTimeout(() => {
if (mapReference.value && mapReference.value.leafletObject) {
const map = mapReference.value.leafletObject;
L.control.browserPrint({
title: "Imprimir mapa",
position: "topright",
printDelay: 0,
preferCanvas: true,
hideControlContainer: false,
printLayer: true,
}).addTo(map);
}
}, 500);
});
Hi!
When I print the map, the image does not appear for printing and I receive the warning "Unknown layer, cannot clone this layer. Leaflet version: " + L.version), console.info("For additional information please refer to documentation on: https://github.com/Igor-Vladyka/leaflet.browser.print.").
onMounted(() => {
mapHeight.value = parseInt(window.innerHeight - 166);
});