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

Fix marker popup console error #213

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Conversation

HarelM
Copy link
Collaborator

@HarelM HarelM commented Nov 6, 2024

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.

Comment on lines +9 to +20
jasmine.createSpyObj(
[
'addMarker',
'removeMarker',
'removePopupFromMap',
'createPopup',
'addPopupToMarker'
],
{
mapCreated$: of(true),
}
);
Copy link
Collaborator

@ShellyDCMS ShellyDCMS Nov 7, 2024

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?

Copy link
Collaborator Author

@HarelM HarelM Nov 7, 2024

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...

@HarelM HarelM merged commit b48fa56 into main Nov 7, 2024
2 checks passed
@HarelM HarelM deleted the fix-marker-popup-console-error branch November 7, 2024 11:49
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.

3 participants