如何解决esri Map 上的 html2canvas - 图层移动
我正在尝试在 Angular 系统中创建一个函数,该函数将使用 html2canvas 生成地图图像 以下是当前功能:
window.emapComponent.service.getMap('mapApi').then((map) => {
html2canvas(document.getElementById("mapApi"),{ useCORS: true }).then(function (canvas) {
canvas.screenshotDataURI = canvas.toDataURL("image/jpg",0.5);
canvas.toBlob(function (blob) {
saveAs(blob,oRequest.fileName)
});
});
})
发生的情况是,在系统本身中,只要我用鼠标拖动地图,照片就会出现奇怪(附上文件)-
我注意到在 html 的元素中,虽然我看到图层的对象调整到地图,但实际上 div 本身是从一个地方拖到另一个地方的,这就是我在图片中得到的 我很乐意为您提供帮助
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。