Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-baidu-map-drawing-manager 如何监听切换绘制模式? #321

Closed
sunny-token opened this issue Dec 1, 2023 · 3 comments
Closed

Comments

@sunny-token
Copy link

请问,我想在切换绘制模式的时候触发一些事件,我要怎么监听呢?
代码示例

@jaywcjlove
Copy link
Member

@sunny-token
Copy link
Author

@jaywcjlove 文档没有的监听事件是不是就是不支持呢?我看文档也没有监听切换绘制模式的方法嘛,只有绘制完毕的监听

jaywcjlove added a commit that referenced this issue Dec 1, 2023
@jaywcjlove
Copy link
Member

@sunny-token 更新到 v2.7.0 就提供了官方的事件,其实你可以通过 ref 获得 drawingManager 对象,自己监听事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants