Skip to content

Commit

Permalink
fix: temp disabled labels due to performance problems #2
Browse files Browse the repository at this point in the history
  • Loading branch information
foosint committed Jan 29, 2024
1 parent aeb7c42 commit 9755b05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ class MapViewer {
this.layer_units.forEach((unitLayer) => {
unitLayer.eachLayer((layer: any) => {
const currentIcon = layer.getIcon();
const currentTooltip = layer.getTooltip();
const { icon, tooltipOffset } = this.createUnitIcon(currentIcon.options);
currentTooltip.options.offset = tooltipOffset;
// const currentTooltip = layer.getTooltip();
const { icon } = this.createUnitIcon(currentIcon.options);
// currentTooltip.options.offset = tooltipOffset;
layer.setIcon(icon);
});
});
Expand Down

0 comments on commit 9755b05

Please sign in to comment.