Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果按下完成按钮,我需要获取多边形的新坐标。我应用了 pm:update,但是在旋转或移动多边形时不会触发此事件。我也尝试使用 pm:action click,但这个事件并没有让我有机会获得我正在更改的多边形的坐标。
监听pm:edit事件,发生变化后直接触发。
pm:edit
polygon.on('pm:edit', (e)=>{ console.log(e); });