qm-map-print 是一款基于React、Mapboxgl的地图打印工具
使用npm或yarn安装
npm install qm-map-print
yarn add qm-map-print
qm-map-print 开发依赖于fabric@5.3.0,file-saver,jspdf库
import { MapboxExportControl } from 'qm-map-print';
import { Map} from 'mapbox-gl';
const map=new Map()
const exportCtrl =new MapboxExportControl();
map.addControl(exportCtrl, 'top-right');