|
@@ -34,7 +34,7 @@ const module = angular.module('hs', [
|
|
|
'pra.adjuster'
|
|
'pra.adjuster'
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
-module.directive('hs', ['config', 'Core', function (config, Core) {
|
|
|
|
|
|
|
+module.directive('hs', ['HsConfig', 'HsCore', function (config, Core) {
|
|
|
return {
|
|
return {
|
|
|
template: Core.hslayersNgTemplate,
|
|
template: Core.hslayersNgTemplate,
|
|
|
/* link: function (scope, element) {
|
|
/* link: function (scope, element) {
|
|
@@ -104,7 +104,7 @@ const nuts3Layer = new VectorLayer({
|
|
|
nuts3Layer.set('hoveredKeys', ['NUTS_NAME', 'totalForHumans', 'Social & Human', 'Anthropic', 'Institutional', 'Economical', 'Natural', 'Cultural']);
|
|
nuts3Layer.set('hoveredKeys', ['NUTS_NAME', 'totalForHumans', 'Social & Human', 'Anthropic', 'Institutional', 'Economical', 'Natural', 'Cultural']);
|
|
|
nuts3Layer.set('hoveredKeysTranslations', { NUTS_NAME: 'Name', totalForHumans: 'Calculated score' });
|
|
nuts3Layer.set('hoveredKeysTranslations', { NUTS_NAME: 'Name', totalForHumans: 'Calculated score' });
|
|
|
|
|
|
|
|
-module.value('config', {
|
|
|
|
|
|
|
+module.value('HsConfig', {
|
|
|
proxyPrefix: '../8085/',
|
|
proxyPrefix: '../8085/',
|
|
|
default_layers: [
|
|
default_layers: [
|
|
|
new Tile({
|
|
new Tile({
|
|
@@ -150,7 +150,7 @@ module.value('config', {
|
|
|
sizeMode: 'fullscreen'
|
|
sizeMode: 'fullscreen'
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-module.controller('Main', ['$scope', 'Core', '$compile', 'hs.layout.service', 'pra.adjuster.service',
|
|
|
|
|
|
|
+module.controller('Main', ['$scope', 'HsCore', '$compile', 'HsLayoutService', 'pra.adjuster.service',
|
|
|
function ($scope, Core, $compile, layoutService, adjusterService) {
|
|
function ($scope, Core, $compile, layoutService, adjusterService) {
|
|
|
$scope.Core = Core;
|
|
$scope.Core = Core;
|
|
|
$scope.panelVisible = layoutService.panelVisible;
|
|
$scope.panelVisible = layoutService.panelVisible;
|