-
-
Notifications
You must be signed in to change notification settings - Fork 26
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 marker popup console error #213
Conversation
jasmine.createSpyObj( | ||
[ | ||
'addMarker', | ||
'removeMarker', | ||
'removePopupFromMap', | ||
'createPopup', | ||
'addPopupToMarker' | ||
], | ||
{ | ||
mapCreated$: of(true), | ||
} | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wondering, can you use ts-stubber with jasmine.createSpy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the benefit in this case? The downside is obviously another dependency to maintain...
Fixes #211 as this issue had two bug associated with it.
This is done by removing the popup using the map service (mainly unregistering the events) even in the case where marker was already destroyed.