|
@@ -128,7 +128,7 @@ const closeDialog = (key) => {
|
|
|
};
|
|
|
function toImg(show) {
|
|
|
let canvas = pdfMap.kmap.map.getViewport().querySelector('canvas')
|
|
|
- let dataURL = canvas.toDataURL('image/png');
|
|
|
+ let dataURL = canvas.toDataURL('image/webp');
|
|
|
// if(show){
|
|
|
imgUrl.value = dataURL;
|
|
|
// }
|
|
@@ -143,7 +143,7 @@ onMounted(()=>{
|
|
|
pdfMap.initMap(data,mapRef.value)
|
|
|
setTimeout(function(){
|
|
|
toImg(false)
|
|
|
- },1000)
|
|
|
+ },1500)
|
|
|
})
|
|
|
})
|
|
|
</script>
|