|
|
@@ -14,7 +14,7 @@ import attractivenessConfig from '../attractiveness.config.json';
|
|
|
import clusteringMethods from '../data/clustering_methods.json';
|
|
|
import {AdjusterEventService} from './adjuster-event.service';
|
|
|
import {AdjusterLegendService} from './adjuster-legend.service';
|
|
|
-import {AdjusterPresetsService} from './adjuster-presets.service';
|
|
|
+import {AdjusterPresetsService, Factor} from './adjuster-presets.service';
|
|
|
import {obce, obceIndexLayer, osmLayer} from '../app.config';
|
|
|
|
|
|
@Injectable({providedIn: 'root'})
|
|
|
@@ -29,7 +29,7 @@ export class AdjusterService {
|
|
|
allowClusters = true;
|
|
|
/** Used in the UI as a selector */
|
|
|
allowIndex = true;
|
|
|
- factors = [];
|
|
|
+ factors: Array<Factor> = [];
|
|
|
layersReady = new Set();
|
|
|
//method: string;
|
|
|
methods: Array<MethodDescription>;
|
|
|
@@ -95,7 +95,7 @@ export class AdjusterService {
|
|
|
this.factors = newSchema.groups.map((group) => {
|
|
|
return {
|
|
|
id: group.id,
|
|
|
- name: group.labels[0]['@value'],
|
|
|
+ labels: group.labels,
|
|
|
//FIXME: load weights from file
|
|
|
weight: 0.5,
|
|
|
datasets: this.adjusterPresetsService.getGroupDatasets(group.id)
|