Skip to content

Commit

Permalink
Fix an issue with user sprite not updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Aug 22, 2024
1 parent 411071a commit 9b8958f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/primitives/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@ const Marker = function(zincObject) {
}

this.setUserSprite = () => {
if (defaultDisplay && userSprite) {
if (userSprite) {
this.morph.add(userSprite);
this.morph.remove(sprite);
if (label) {
this.morph.remove(label);
if (defaultDisplay) {
this.morph.remove(sprite);
if (label) {
this.morph.remove(label);
}
defaultDisplay = false;
}
defaultDisplay = false;
}
}

Expand Down

0 comments on commit 9b8958f

Please sign in to comment.