js和leaflet一起保存并下载当前页面的截图,在线会显示图片中的线条会有偏移问题解决
发布时间
阅读量:
阅读量
这是所存储的leaflet地图

<div id="map" class="map"></div>
var mapid = document.querySelector('#map');
const scale = window.devicePixelRatio;
// // 传入节点原始宽高
const _width = mapid["offsetWidth"];
const _height = mapid["offsetHeight"];
var options = { width: _width, height: _height };
// html2canvas配置项
const ops = {
scale: 1,
width: _width,
height: _height,
全部评论 (0)
还没有任何评论哟~
