https://x-zd.gitee.io/draw-popup/ 1、点击按钮激活画笔 let btn = document.getElementById("btn"); function activeDraw() { map.addInteraction(draw); /* btn-样式 */