Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous authored and Gaetanbrl committed May 25, 2023
1 parent 15226e7 commit f971c6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/mviewerstudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,9 @@ var getConfig = () => {
'coordinates="'+($('#opt-coordinates').prop('checked')=== true)+'"',
'measuretools="'+($('#opt-measuretools').prop('checked')=== true)+'"',
'mouseposition="'+($('#opt-mouseposition').prop('checked')=== true)+'"',
'geoloc="'+($('#opt-geoloc').prop('checked')=== true)+'"',
'studio="'+studioUrl+'"',
'togglealllayersfromtheme="'+($('#opt-togglealllayersfromtheme').prop('checked')=== true)+'"'];
'geoloc="' + ($('#opt-geoloc').prop('checked') === true) + '"',
'studio="' + studiourl + '"',
'togglealllayersfromtheme="' + ($('#opt-togglealllayersfromtheme').prop('checked') === true) + '"'];

config.title = $("#opt-title").val();

Expand Down
14 changes: 14 additions & 0 deletions lib/mv.js
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,11 @@ var mv = (function () {
savedParameters.application.push(parameter);
}
});
<<<<<<< HEAD
["title", "logo", "help", "style", "home", "favicon", "icon-help", "studio"].forEach(function (value, id) {
=======
["title", "logo", "help", "style", "home", "favicon", "icon-help", "studio"].forEach(function(value,id) {
>>>>>>> f461c0f (Fix https://github.com/mviewer/mviewerstudio/issues/157#issuecomment-1466096152)
if (application.attr(value)) {
$("#opt-" + value).val(application.attr(value)).trigger("change");
}
Expand All @@ -1260,6 +1264,16 @@ var mv = (function () {
}
if (value === "studio" && application.attr(value) != 'false') {
$("#opt-studio").prop("checked", true);
<<<<<<< HEAD
=======
}
});

["exportpng","zoomtools", "measuretools", "showhelp", "coordinates", "mouseposition", "geoloc", "initialextenttool",
"togglealllayersfromtheme"].forEach(function(value,id) {
if (application.attr(value) && application.attr(value) === "true") {
$("#opt-" + value).prop("checked", true);
>>>>>>> f461c0f (Fix https://github.com/mviewer/mviewerstudio/issues/157#issuecomment-1466096152)
}
});

Expand Down

0 comments on commit f971c6a

Please sign in to comment.