Revert "GUI: Added ESLint to gulp tasks GUI: Linted files Fixed an error in the build script"
This reverts commit 46c5f1087d76d93497a1e8e5593564991ccb6682.
Change-Id: I1464fdd1df075e93f885e3c1fbd02f0cc563fd4f
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Map.js b/web/gui/src/main/webapp/app/view/topo2/topo2Map.js
index 202a1cf..002ca69 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2Map.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2Map.js
@@ -23,13 +23,14 @@
'use strict';
// Injected Services
- var t2zs, countryFilters, ms;
+ var $log, $loc, ps, ms, flash, sus, t2zs, countryFilters;
// internal state
- var instance, zoomer, currentMap;
+ var instance, mapG, zoomLayer, zoomer, currentMap;
function init() {
this.appendElement('#topo2-background', 'g');
+ zoomLayer = d3.select('#topo2-zoomlayer');
zoomer = t2zs.getZoomer();
currentMap = null;
}
@@ -37,7 +38,7 @@
function setUpMap(mapId, mapFilePath, mapScale) {
if (currentMap === mapId) {
- return new Promise(function (resolve) {
+ return new Promise(function(resolve) {
resolve();
});
}
@@ -47,7 +48,7 @@
var loadMap = ms.loadMapInto,
promise, cfilter;
- this.node().selectAll('*').remove();
+ this.node().selectAll("*").remove();
if (mapFilePath === '*countries') {
cfilter = countryFilters[mapId] || countryFilters.uk;
@@ -57,7 +58,7 @@
promise = loadMap(this.node(), mapFilePath, mapId, {
countryFilters: cfilter,
adjustScale: mapScale || 1,
- shading: '',
+ shading: ''
});
return promise;
@@ -79,11 +80,19 @@
angular.module('ovTopo2')
.factory('Topo2MapService', [
- 'Topo2ZoomService', 'MapService', 'Topo2ViewController',
+ '$log', '$location', 'Topo2ViewController', 'PrefsService',
+ 'MapService', 'FlashService', 'SvgUtilService', 'Topo2ZoomService',
- function (_t2zs_, _ms_, ViewController) {
- t2zs = _t2zs_;
+ function (_$log_, _$loc_, ViewController, _ps_,
+ _ms_, _flash_, _sus_, _t2zs_) {
+
+ $log = _$log_;
+ $loc = _$loc_;
+ ps = _ps_;
ms = _ms_;
+ flash = _flash_;
+ sus = _sus_;
+ t2zs = _t2zs_;
var MapLayer = ViewController.extend({
@@ -94,10 +103,10 @@
setUpMap: setUpMap,
resetZoom: resetZoom,
zoomCallback: zoomCallback,
- getCurrentMap: getCurrentMap,
+ getCurrentMap: getCurrentMap
});
return instance || new MapLayer();
- },
+ }
]);
})();