|
@@ -126,12 +126,10 @@ const closeDialog = (key) => {
|
|
|
}
|
|
|
emit("closeDialog", "pdf");
|
|
|
};
|
|
|
-function toImg(show) {
|
|
|
- let canvas = pdfMap.kmap.map.getViewport().querySelector('canvas')
|
|
|
- let dataURL = canvas.toDataURL('image/png');
|
|
|
- // if(show){
|
|
|
- imgUrl.value = dataURL;
|
|
|
- // }
|
|
|
+function toImg() {
|
|
|
+ // let canvas = pdfMap.kmap.map.getViewport().querySelector('canvas')
|
|
|
+ // let dataURL = canvas.toDataURL('image/webp');
|
|
|
+ // imgUrl.value = dataURL;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -142,8 +140,8 @@ onMounted(()=>{
|
|
|
rowData.value = data
|
|
|
pdfMap.initMap(data,mapRef.value)
|
|
|
setTimeout(function(){
|
|
|
- toImg(true)
|
|
|
- },1000)
|
|
|
+ toImg(false)
|
|
|
+ },1500)
|
|
|
})
|
|
|
})
|
|
|
</script>
|