nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 17d540a1e188c291ad0c558e94ace737e44a787d
parent fdc777815e1d968d2540a11c4556877b58b16b49
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sat, 25 Jan 2020 21:30:53 +0100

fix lint errors (new-cap)

Diffstat:
Msrc/lib/leaflet.control.printPages/decoration.magnetic-meridians.js | 2+-
Msrc/lib/leaflet.control.printPages/map-render.js | 2+-
Msrc/lib/leaflet.control.track-list/lib/loadFromUrl.js | 4++--
Mwebpack/webpack.config.js | 4++--
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/lib/leaflet.control.printPages/decoration.magnetic-meridians.js b/src/lib/leaflet.control.printPages/decoration.magnetic-meridians.js @@ -8,7 +8,7 @@ function radians(degrees) { function movePoint(p, angle, dist) { angle = radians(angle); - return new L.point(p.x + Math.sin(angle) * dist, p.y - Math.cos(angle) * dist); + return L.point(p.x + Math.sin(angle) * dist, p.y - Math.cos(angle) * dist); } class MagneticMeridians extends PrintStaticLayer { diff --git a/src/lib/leaflet.control.printPages/map-render.js b/src/lib/leaflet.control.printPages/map-render.js @@ -20,7 +20,7 @@ function getLayersForPrint(map, xhrQueue) { function getLayerZOrder(layer) { let el = layer._container || layer._path; if (!el) { - throw TypeError('Unsupported layer type'); + throw new TypeError('Unsupported layer type'); } const order = []; while (el !== layer._map._container) { diff --git a/src/lib/leaflet.control.track-list/lib/loadFromUrl.js b/src/lib/leaflet.control.track-list/lib/loadFromUrl.js @@ -1,8 +1,8 @@ import services from './services'; async function loadFromUrl(url) { - for (let serviceClass of services) { - let service = new serviceClass(url); + for (let ServiceClass of services) { + let service = new ServiceClass(url); if (service.isOurUrl()) { return service.geoData(); } diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js @@ -62,7 +62,7 @@ const sourceMapOption = { exclude: /mapillary/u, }; -const devToolPlugin = isProduction ? Webpack.SourceMapDevToolPlugin : Webpack.EvalSourceMapDevToolPlugin; +const DevToolPlugin = isProduction ? Webpack.SourceMapDevToolPlugin : Webpack.EvalSourceMapDevToolPlugin; const plugins = [ ...(isProduction ? [new CleanWebpackPlugin()] : []), @@ -92,7 +92,7 @@ const plugins = [ }), ] : []), - new devToolPlugin(sourceMapOption), + new DevToolPlugin(sourceMapOption), ]; const productionCSSLoader = [