diff --git a/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js b/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js index f2410dc165be6bc1e4bd27eeef13fb51ace0b5ff..2428853d0728b87ce7d7dd5169518052a2e527ce 100644 --- a/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js +++ b/frontend-js/src/main/js/map/surface/AbstractSurfaceElement.js @@ -137,7 +137,7 @@ AbstractOverlayElement.prototype.getBounds = function () { /** * Returns {@link AbstractCustomMap} where surface is located. * - * @returns {@link AbstractCustomMap} where surface is located + * @returns {AbstractCustomMap} where surface is located */ AbstractOverlayElement.prototype.getCustomMap = function () { return this._customMap; diff --git a/frontend-js/src/main/js/map/surface/AliasSurface.js b/frontend-js/src/main/js/map/surface/AliasSurface.js index fd4bf02db59970380f0449a7a53b6bf25cc8e243..f062657fdc63d1f28a7a33d37da61bcb6cdbead4 100644 --- a/frontend-js/src/main/js/map/surface/AliasSurface.js +++ b/frontend-js/src/main/js/map/surface/AliasSurface.js @@ -2,6 +2,7 @@ /* exported logger */ +// noinspection JSUnusedLocalSymbols var logger = require('../../logger'); var functions = require('../../Functions'); @@ -31,7 +32,7 @@ AliasSurface.prototype.setColor = function (color) { var googleMapObjects = this.getGoogleMapObjects(); for (var i = 0; i < googleMapObjects.length; i++) { googleMapObjects[i].setOptions({ - strokeColor: color, + strokeColor: color }); } }; @@ -103,7 +104,7 @@ AliasSurface.create = function (params) { return functions.overlayToColor(overlayAlias).then(function (color) { rectangle.setOptions({ - fillColor: color, + fillColor: color }); var result = new AliasSurface({ map: map, @@ -159,14 +160,14 @@ AliasSurface.createFromIdentifiedElement = function (params) { fillColor: color, strokeColor: strokeColor, strokeOpacity: strokeOpacity, - strokeWeight: strokeWeight, + strokeWeight: strokeWeight }); var result = new AliasSurface({ gmapObj: rectangle, map: map, onClick: params.onClick, - alias: alias, + alias: alias }); result.setIdentifiedElement(element); return result; diff --git a/frontend-js/src/main/js/map/surface/ReactionSurface.js b/frontend-js/src/main/js/map/surface/ReactionSurface.js index 488a5c47bd3a29eda206aab53348d2e66df31c68..58748537d193ee03bb53accf1092483d5653f6a2 100644 --- a/frontend-js/src/main/js/map/surface/ReactionSurface.js +++ b/frontend-js/src/main/js/map/surface/ReactionSurface.js @@ -1,5 +1,7 @@ "use strict"; +var Promise = require("bluebird"); + /* exported logger */ var functions = require('../../Functions'); @@ -89,7 +91,7 @@ ReactionSurface.prototype.setColor = function (color) { var gmapObjects = this.getGoogleMapObjects(); for (var i = 0; i < gmapObjects.length; i++) { gmapObjects[i].setOptions({ - strokeColor: color, + strokeColor: color }); } this.customized = true; @@ -165,7 +167,7 @@ ReactionSurface.prototype.changedToDefault = function () { for (var i = 0; i < this.getGoogleMapObjects().length; i++) { this.getGoogleMapObjects()[i].setOptions({ strokeColor: "#0000FF", - strokeWeight: 5, + strokeWeight: 5 }); } this.customized = false; @@ -179,7 +181,7 @@ ReactionSurface.prototype.changedToCustomized = function () { for (var i = 0; i < this.getGoogleMapObjects().length; i++) { this.getGoogleMapObjects()[i].setOptions({ strokeColor: this.getColor(), - strokeWeight: this.getWidth(), + strokeWeight: this.getWidth() }); } this.customized = true;