summaryrefslogtreecommitdiff
path: root/src/scripts/controllers/scaleindicator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/controllers/scaleindicator.ts')
-rw-r--r--src/scripts/controllers/scaleindicator.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/controllers/scaleindicator.ts b/src/scripts/controllers/scaleindicator.ts
index 0ff83486..789f2cc7 100644
--- a/src/scripts/controllers/scaleindicator.ts
+++ b/src/scripts/controllers/scaleindicator.ts
@@ -24,7 +24,7 @@ export class ScaleIndicatorController {
}
public update(): void {
- let currentZoom = this.mapView.mapContainer.scaleX;
+ const currentZoom = this.mapView.mapContainer.scaleX;
let newWidth;
do {
newWidth = (currentZoom * CELL_SIZE) / this.currentDivisor;