Open chinyifei opened 1 week ago
监听控件‘line’|‘polygon’|‘rect’|‘circle’绘制结束事件
当控件结束绘制之后,退出当前的绘制状态,可以实现不必用户再次点击激活的绘制类型退出绘制状态
目前我的实现是这样的:
drawControl.on(ControlEvent.DrawSelect, (drawType, feature) => { console.log('当前选中数据发生更改', drawType, feature); // 退出绘制状态 if (!feature) { drawControl.setActiveType(drawType); } });
💻 Features description [Please make everyone to understand it]
🏞 What problem does this feature solve
🧐 What does the proposed API look like
🚑 Any additional [like screenshots]
目前我的实现是这样的: