diff --git a/frontend-js/src/main/js/ConfigurationType.js b/frontend-js/src/main/js/ConfigurationType.js index bb4cc6b271011fa703430c6cf220b7a0980d8dc6..defc30720f30b40ee06e0236b61d8fd0fe4954b5 100644 --- a/frontend-js/src/main/js/ConfigurationType.js +++ b/frontend-js/src/main/js/ConfigurationType.js @@ -1,7 +1,6 @@ "use strict"; var ConfigurationType = { - DEFAULT_MAP : "DEFAULT_MAP", GOOGLE_ANALYTICS_IDENTIFIER : "GOOGLE_ANALYTICS_IDENTIFIER", LOGO_IMG : "LOGO_IMG", @@ -9,6 +8,7 @@ var ConfigurationType = { LEGEND_FILES : "LEGEND_FILES", MIN_COLOR_VAL : "MIN_COLOR_VAL", MAX_COLOR_VAL : "MAX_COLOR_VAL", + SEARCH_DISTANCE : "SEARCH_DISTANCE", USER_MANUAL_FILE : "USER_MANUAL_FILE", }; diff --git a/frontend-js/src/main/js/ServerConnector.js b/frontend-js/src/main/js/ServerConnector.js index 468df26d5eaa9d22abe5a848703baf739a45fc72..f49f246c52f0e1f327ff2a3798f2d3ceef92b2a6 100644 --- a/frontend-js/src/main/js/ServerConnector.js +++ b/frontend-js/src/main/js/ServerConnector.js @@ -896,6 +896,10 @@ ServerConnector.getLogoLink = function() { return this.getConfigurationParam(ConfigurationType.LOGO_LINK); }; +ServerConnector.getMaxSearchDistance = function() { + return this.getConfigurationParam(ConfigurationType.SEARCH_DISTANCE) +}; + ServerConnector.getOverlayById = function(layoutId, projectId) { var self = this; return self.getProjectId(projectId).then(function(data) {