qm-map-print
v1.0.4
Published
mapbox view print tool
Downloads
7
Readme
qm-map-print
qm-map-print 是一款基于React、Mapboxgl的地图打印工具
安装
使用npm或yarn安装
npm install qm-map-print
yarn add qm-map-print
依赖
qm-map-print 开发依赖于[email protected],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');