diff --git a/frontend-js/src/main/js/ConfigurationType.js b/frontend-js/src/main/js/ConfigurationType.js index 0b85d8d10838ecdd82477b315eab0bdf5957a6cd..abe4fdd441a31848a892b26060d5f68be0328628 100644 --- a/frontend-js/src/main/js/ConfigurationType.js +++ b/frontend-js/src/main/js/ConfigurationType.js @@ -13,6 +13,7 @@ var ConfigurationType = { SIMPLE_COLOR_VAL: "SIMPLE_COLOR_VAL", SEARCH_DISTANCE: "SEARCH_DISTANCE", SEARCH_RESULT_NUMBER: "SEARCH_RESULT_NUMBER", + TERMS_OF_USE: "TERMS_OF_USE", USER_MANUAL_FILE: "USER_MANUAL_FILE", }; diff --git a/frontend-js/src/main/js/minerva.js b/frontend-js/src/main/js/minerva.js index 02869dd8456f97cd0ea3cb17f3b475f16f5bf900..6556f66841cb5010100bfbafc9dc59625629c382 100644 --- a/frontend-js/src/main/js/minerva.js +++ b/frontend-js/src/main/js/minerva.js @@ -607,7 +607,7 @@ function create(params) { GuiConnector.alert("Some data overlays doesn't have consent to the terms of the <a href='https://cloud.google.com/maps-platform/terms/' target='_blank'>license of Google Maps Platform</a>. To be able to visualize them you must edit data overlay. ") } if (user.getLogin() !== "anonymous" && !user.isTermsOfUseConsent()) { - requestConsent(user); + requestConsent(user, params.getConfiguration().getOption(ConfigurationType.TERMS_OF_USE)); } var result = createResult(customMap); diff --git a/web/src/main/webapp/resources/other/terms_of_use.pdf b/web/src/main/webapp/resources/other/terms_of_use.pdf new file mode 100644 index 0000000000000000000000000000000000000000..21f7fb0abbde215ce1391ed614874e4060bcb94c Binary files /dev/null and b/web/src/main/webapp/resources/other/terms_of_use.pdf differ