Leaflet.freedraw 插件画多边形
官方标配写法:import L from ‘leaflet’;nimport FreeDraw from ‘leaflet-freedraw’;nnconst map = new L.Map(node);nconst freeDraw = new FreeDraw();nnmap.addLayer(freeDraw);复制代码绘画操作函数:freeDraw.on
官方标配写法:import L from ‘leaflet’;nimport FreeDraw from ‘leaflet-freedraw’;nnconst map = new L.Map(node);nconst freeDraw = new FreeDraw();nnmap.addLayer(freeDraw);复制代码绘画操作函数:freeDraw.on