|
@@ -85,7 +85,6 @@ export class AdjusterService {
|
|
|
})
|
|
})
|
|
|
.toPromise()
|
|
.toPromise()
|
|
|
.then((attractivenessData: any[]) => {
|
|
.then((attractivenessData: any[]) => {
|
|
|
- console.log(attractivenessData);
|
|
|
|
|
// Spread the 'aggregate' value between 0 and 1
|
|
// Spread the 'aggregate' value between 0 and 1
|
|
|
const min = attractivenessData.reduce((a, b) =>
|
|
const min = attractivenessData.reduce((a, b) =>
|
|
|
a.aggregate < b.aggregate ? a : b
|
|
a.aggregate < b.aggregate ? a : b
|
|
@@ -143,7 +142,6 @@ export class AdjusterService {
|
|
|
})
|
|
})
|
|
|
.toPromise()
|
|
.toPromise()
|
|
|
.then((data: any) => {
|
|
.then((data: any) => {
|
|
|
- console.log('data received', data);
|
|
|
|
|
const clusterData = data.response;
|
|
const clusterData = data.response;
|
|
|
// Store relation between region and its data in a hash-table-like structure
|
|
// Store relation between region and its data in a hash-table-like structure
|
|
|
// more memory consuming, but much faster then find()
|
|
// more memory consuming, but much faster then find()
|
|
@@ -218,7 +216,6 @@ export class AdjusterService {
|
|
|
//this.hsLayerMetadataService.fillMetadata(obceLayer);
|
|
//this.hsLayerMetadataService.fillMetadata(obceLayer);
|
|
|
//console.log(sublayers[0].getSource().getFeatures());
|
|
//console.log(sublayers[0].getSource().getFeatures());
|
|
|
console.timeEnd('forEach-Cluster');
|
|
console.timeEnd('forEach-Cluster');
|
|
|
- console.log('clustering done!');
|
|
|
|
|
//this.clusters = clusters;
|
|
//this.clusters = clusters;
|
|
|
this._clustersLoaded = true;
|
|
this._clustersLoaded = true;
|
|
|
this._clusteringInProcess = false;
|
|
this._clusteringInProcess = false;
|