|
|
@@ -7,6 +7,8 @@ import {View} from 'ol';
|
|
|
import {get as getProjection, transform} from 'ol/proj';
|
|
|
import {register} from 'ol/proj/proj4';
|
|
|
|
|
|
+import i18n from './translations.json';
|
|
|
+
|
|
|
proj4.defs(
|
|
|
'EPSG:3045',
|
|
|
'+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'
|
|
|
@@ -97,7 +99,7 @@ obceLayer.set('popUp', {
|
|
|
{attribute: 'text', label: 'Název'},
|
|
|
{
|
|
|
attribute: 'aggregate',
|
|
|
- label: 'RAI',
|
|
|
+ label: 'index',
|
|
|
displayFunction: (x) => {
|
|
|
return `${(x * 100).toFixed(2)} %`;
|
|
|
},
|
|
|
@@ -144,33 +146,7 @@ export const AppConfig = {
|
|
|
draw: false,
|
|
|
},
|
|
|
sizeMode: 'fullscreen',
|
|
|
- translationOverrides: {
|
|
|
- 'cs': {
|
|
|
- 'ADJUSTER': {
|
|
|
- adjustFactors: 'Vyladit faktory',
|
|
|
- calculate: 'Vypočítat',
|
|
|
- calcAttractivity: 'Počítám atraktivitu',
|
|
|
- calcClusters: 'Počítám shluky',
|
|
|
- loading: 'Načítám',
|
|
|
- loadingData: 'Načítám data',
|
|
|
- noDataSelectedMsg:
|
|
|
- 'Vyberte alespoň jednu datovou sadu a nastavte váhu aspoň jednoho faktoru na ne-nulovou hodnotu.',
|
|
|
- serverError: 'Chyba serveru',
|
|
|
- },
|
|
|
- },
|
|
|
- 'en': {
|
|
|
- 'ADJUSTER': {
|
|
|
- adjustFactors: 'Adjust Factors',
|
|
|
- calculate: 'Calculate',
|
|
|
- calcAttractivity: 'Calculating attractivity',
|
|
|
- calcClusters: 'Calculating clusters',
|
|
|
- loading: 'Loading',
|
|
|
- loadingData: 'Loading data',
|
|
|
- noDataSelectedMsg: `Select at least one dataset and set at least one factor's weight to a non-zero value.`,
|
|
|
- serverError: 'Server error',
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
+ translationOverrides: i18n,
|
|
|
};
|
|
|
|
|
|
export default AppConfig;
|