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 null-check for marker in applyRotation #31

Closed

Conversation

harshil-manifestux
Copy link

@harshil-manifestux harshil-manifestux commented Dec 17, 2021

I've added null-safety to applyRotation function.

I am using this plugin in a react app along with leaflet.markercluster and apply rotation to markers inside cluster. I've a menu in the app which filters the markers.
For one edge case, where several markers inside marker cluster are at same position, applying filter crashes the app with error reading this._icon. So, I've added a null-check by adding it inside if condition.

Screenshot 2021-12-17 at 5 26 30 PM

@bbecquet

@harshil-manifestux harshil-manifestux deleted the fix/nullcheck branch December 28, 2021 11:19
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