Browse Source

feat: use Ward cluster method

jmacura 5 năm trước cách đây
mục cha
commit
e5feb4c3a5
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      src/adjuster/adjuster.service.js
  2. 1 1
      src/app.component.js

+ 1 - 1
src/adjuster/adjuster.service.js

@@ -15,7 +15,7 @@ export class AdjusterService {
         : 'https://publish.lesprojekt.cz/nodejs/';
     this.factors = [];
     this.clusters = [];
-    this.method = 'haclust';
+    this.method = 'haclustwd2';
     this._clusteringInProcess = true;
     this.init();
   }

+ 1 - 1
src/app.component.js

@@ -73,7 +73,7 @@ const nuts2style = new Style({
 });
 
 // TODO: 'method' must be obtained from AdjusterService
-const method = 'haclust';
+const method = 'haclustwd2';
 const nuts3style = function (feature) {
   if (isNaN(feature.get(method))) {
     return [