-
Notifications
You must be signed in to change notification settings - Fork 377
fix unbind tooltip #386
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
fix unbind tooltip #386
Conversation
@anhnhoktvn thank you for the pr, we should use the same approach for popups. Could you update the pr? |
Sure |
@anhnhoktvn hi thanks for the update. I was checking the source code but at the moment I am far from my pc for few days. I will review the pr again next week |
@anhnhoktvn Hello! Thanks for you PR. |
@bezany yes, I found a bug while using with rotated marker. |
@anhnhoktvn Okay now I see the issue, rotated-marker is not one of our core components and do not implement the layer mixin. @bezany what do you think ? should we fix our side or should we ask the other plugin to import our layer mixin ? |
@DonNicoJs Interesting case. Anyway, I think need done code more safe through added checks that if (this.parentContainer) {
if (this.parentContainer.unbindPopup) {
this.parentContainer.unbindPopup();
} else if (this.parentContainer.mapObject
&& this.parentContainer.mapObject.unbindPopup) {
this.parentContainer.mapObject.unbindPopup();
}
} Not elegant, but reliable. |
@DonNicoJs @bezany I updated the code following @bezany 's suggestion. Does anything need to be done? |
@anhnhoktvn no it's all good! Merging and thank you. I will do a release soon. |
No description provided.