|
|
@@ -153,7 +153,7 @@ export const perc2color = (perc: number): string => {
|
|
|
return `rgba(${r}, ${g}, ${b}, 0.7)`;
|
|
|
};
|
|
|
|
|
|
-const decimal2prettyPerc = (x) => {
|
|
|
+export const decimal2prettyPerc = (x) => {
|
|
|
return `${(x * 100).toFixed(2)} %`;
|
|
|
};
|
|
|
|
|
|
@@ -209,30 +209,6 @@ obceIndexLayer.set('popUp', {
|
|
|
label: 'agregovaný index',
|
|
|
displayFunction: decimal2prettyPerc,
|
|
|
},
|
|
|
- { //FIXME: This needs to be made versite to schemas
|
|
|
- attribute: 'Konec chudoby',
|
|
|
- displayFunction: decimal2prettyPerc,
|
|
|
- },
|
|
|
- {
|
|
|
- attribute: 'Zdraví a kvalitní život',
|
|
|
- displayFunction: decimal2prettyPerc,
|
|
|
- },
|
|
|
- {
|
|
|
- attribute: 'Kvalitní vzdělání',
|
|
|
- displayFunction: decimal2prettyPerc,
|
|
|
- },
|
|
|
- {
|
|
|
- attribute: 'Důstojná práce a ekonomický růst',
|
|
|
- displayFunction: decimal2prettyPerc,
|
|
|
- },
|
|
|
- {
|
|
|
- attribute: 'Udržitelná města a obce',
|
|
|
- displayFunction: decimal2prettyPerc,
|
|
|
- },
|
|
|
- {
|
|
|
- attribute: 'Ostatní',
|
|
|
- displayFunction: decimal2prettyPerc,
|
|
|
- },
|
|
|
],
|
|
|
});
|
|
|
obceIndexLayer.set('editable', false);
|