Skip to content
Snippets Groups Projects
Commit c1beeeae authored by Piotr Gawron's avatar Piotr Gawron
Browse files

creating of map can take input project

parent 15e2ff79
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -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;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment