|
@@ -62,7 +62,7 @@ class MockFarmLayer {
|
|
|
this.clusterSource = new VectorSource({})
|
|
|
this.clusterLayer = new Vector({
|
|
|
source: new Cluster({
|
|
|
- distance: 30,
|
|
|
+ distance: 60,
|
|
|
source: this.clusterSource,
|
|
|
}),
|
|
|
name: "MockFarmLayer",
|
|
@@ -86,7 +86,7 @@ class MockFarmLayer {
|
|
|
const textOffsetY = farmId ? 15 : - 60
|
|
|
|
|
|
// styles.push(that.textBgStyle(startColor, endColor, isHigh));
|
|
|
- styles.push(that.statusTitleStyle(f.get("name"), 0, textOffsetY, '#fff', "#000", (isCurrent || isHigh) ? 20 : 16));
|
|
|
+ styles.push(that.statusTitleStyle(f.get("name"), 0, textOffsetY, '#000', "#fff", (isCurrent || isHigh) ? 20 : 16));
|
|
|
|
|
|
return styles;
|
|
|
}
|
|
@@ -280,7 +280,7 @@ class MockFarmLayer {
|
|
|
// font: `${fontSize}px`,
|
|
|
font: fontSize === 20 ? `bold ${fontSize}px sans-serif` : `${fontSize}px sans-serif`,
|
|
|
fill: new Fill({ color}), // 字体颜色
|
|
|
- stroke: new Stroke({ color: strokeColor,width: fontSize === 20 ?1.5:1}), // 字体颜色
|
|
|
+ stroke: new Stroke({ color: strokeColor,width: fontSize === 20 ?3:2}), // 字体颜色
|
|
|
}),
|
|
|
zIndex: 13
|
|
|
});
|