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

Add more event listener for Marker #456

Closed
wants to merge 1 commit into from
Closed

Add more event listener for Marker #456

wants to merge 1 commit into from

Conversation

yonasadiel
Copy link

Based on this code, the Marker can accept some more event listener. However, only onClick and onMouseover are listed on typescript definition.

handleEvent(evt) {
return (e) => {
const evtName = `on${camelize(evt)}`
if (this.props[evtName]) {
this.props[evtName](this.props, this.marker, e);
}
}
}

@yonasadiel
Copy link
Author

Ups, I think this is duplicate of #433

@yonasadiel yonasadiel closed this Jul 4, 2020
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

Successfully merging this pull request may close these issues.

1 participant