mapbox-gl-draw-cut-polygon-mode
自定义模式,用于切割多边形
检查用于分割多边形。
安装
npm install mapbox-gl-draw-cut-polygon-mode mapbox-gl-draw-passing-mode
或使用CDN:
< script src =" https://unpkg.com/mapbox-gl-draw-passing-mode " > </ script >
< script src =" https://unpkg.com/mapbox-gl-draw-cut-polygon-mode " > </ script >
用法
import mapboxGl from 'mapbox-gl' ;
import MapboxDraw from '@mapbox/mapbox-gl-draw' ;
import
1