Skip to content

Commit

Permalink
Fix #1326 markers: update marker failed when not in view
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Jun 18, 2024
1 parent 72f32de commit 3b57f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/markers-plugin/src/markers/AbstractStandardMarker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export abstract class AbstractStandardMarker extends AbstractDomMarker {
}

const element = this.domElement;
const init = !this.state.size;
const makeTransparent = !this.state.visible || !this.state.size;

if (init) {
if (makeTransparent) {
element.classList.add('psv-marker--transparent');
}

Expand All @@ -145,7 +145,7 @@ export abstract class AbstractStandardMarker extends AbstractDomMarker {
};
}

if (init) {
if (makeTransparent) {
element.classList.remove('psv-marker--transparent');
}

Expand Down

0 comments on commit 3b57f4d

Please sign in to comment.