From ba09e8bd82805b092271d64ef86f66b6cbe2148f Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sat, 23 Dec 2017 00:08:14 -0800 Subject: [PATCH] After ESLint in Mapscii --- src/Mapscii.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mapscii.js b/src/Mapscii.js index 6d230c8..168abac 100644 --- a/src/Mapscii.js +++ b/src/Mapscii.js @@ -52,7 +52,7 @@ class Mapscii { this._initTileSource(); this._initRenderer(); this._draw(); - this.notify("Welcome to MapSCII! Use your cursors to navigate, a/z to zoom, q to quit."); + this.notify('Welcome to MapSCII! Use your cursors to navigate, a/z to zoom, q to quit.'); resolve(); }); } @@ -94,11 +94,11 @@ class Mapscii { this._draw(); }); - this._resizeRenderer() + this._resizeRenderer(); this.zoom = (config.initialZoom !== null) ? config.initialZoom : this.minZoom; } - _resizeRenderer(cb) { + _resizeRenderer() { if (config.size) { this.width = config.size.width; this.height = config.size.height; @@ -168,7 +168,7 @@ class Mapscii { const newCenter = utils.tile2ll( this.mouseDragging.center.x+(dx/size), this.mouseDragging.center.y+(dy/size), - utils.baseZoom(this.zoom), + utils.baseZoom(this.zoom) ); this.setCenter(newCenter.lat, newCenter.lon); @@ -180,7 +180,7 @@ class Mapscii { x: event.x, y: event.y, center: utils.ll2tile(this.center.lon, this.center.lat, utils.baseZoom(this.zoom)), - } + }; } }