From c1beeeae7a6ca264f1594ed32244fc0d4b53c1cc Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Tue, 11 Apr 2017 12:53:41 +0200 Subject: [PATCH] creating of map can take input project --- frontend-js/src/test/js/helper.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend-js/src/test/js/helper.js b/frontend-js/src/test/js/helper.js index d640a9158e..d200d973d5 100644 --- a/frontend-js/src/test/js/helper.js +++ b/frontend-js/src/test/js/helper.js @@ -69,7 +69,6 @@ Helper.prototype.createMenuDiv = function() { showOverviewButton.setAttribute("name", "showOverviewButton"); result.appendChild(showOverviewButton); - return result; }; @@ -457,8 +456,10 @@ Helper.prototype.createGoogleMap = function() { return result; }; -Helper.prototype.createCustomMapOptions = function() { - var project = this.createProject(); +Helper.prototype.createCustomMapOptions = function(project) { + if (project === undefined) { + project = this.createProject(); + } var result = new CustomMapOptions({ markerOptimization : true, @@ -476,8 +477,8 @@ Helper.prototype.createAbstractCustomMap = function() { return result; }; -Helper.prototype.createCustomMap = function() { - var options = this.createCustomMapOptions(); +Helper.prototype.createCustomMap = function(project) { + var options = this.createCustomMapOptions(project); var result = new CustomMap(options); return result; }; -- GitLab