|
|
@@ -19,7 +19,7 @@ class DistributionLayer {
|
|
|
return [style2]
|
|
|
}
|
|
|
});
|
|
|
- this.kmap.addLayer(this.distributionLayer.layer)
|
|
|
+ // this.kmap.addLayer(this.distributionLayer.layer)
|
|
|
|
|
|
this.distributionPointLayer = new KMap.VectorLayer("distributionPointLayer", 99, {
|
|
|
source: new VectorSource({}),
|
|
|
@@ -174,14 +174,14 @@ class DistributionLayer {
|
|
|
|
|
|
for (let item of data) {
|
|
|
// 面数据(区域多边形)
|
|
|
- if (item.geom) {
|
|
|
- const f = new Feature({
|
|
|
- geometry: new WKT().readGeometry(item.geom),
|
|
|
- });
|
|
|
- f.set("color", item.color);
|
|
|
- f.set("fillColor", item.fillColor);
|
|
|
- this.distributionLayer.source.addFeature(f);
|
|
|
- }
|
|
|
+ // if (item.geom) {
|
|
|
+ // const f = new Feature({
|
|
|
+ // geometry: new WKT().readGeometry(item.geom),
|
|
|
+ // });
|
|
|
+ // f.set("color", item.color);
|
|
|
+ // f.set("fillColor", item.fillColor);
|
|
|
+ // this.distributionLayer.source.addFeature(f);
|
|
|
+ // }
|
|
|
|
|
|
// 点数据:根据是否有 children / wktArr 递归查找
|
|
|
addPointFeaturesFromNode(item);
|