summaryrefslogtreecommitdiff
path: root/src/scripts/controllers/scaleindicator.ts
diff options
context:
space:
mode:
authorGeorgios Andreadis <G.Andreadis@student.tudelft.nl>2017-01-27 10:26:54 +0100
committerGitHub <noreply@github.com>2017-01-27 10:26:54 +0100
commit50fcb0634c9ebe894988103184d50d372bc76907 (patch)
tree5af172c03599f7c680cd32205eab5329b841c85c /src/scripts/controllers/scaleindicator.ts
parent3ad08353d289720cf8f43e1dba078da43c35e97d (diff)
parentb462c9183ec7c2e41f14daad49f03d8afaa4ec59 (diff)
Merge pull request #4 from tudelft-atlarge/states-batch-fetch
Fetch experiment states in one batch
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;