|
@@ -13,6 +13,7 @@ class WaterLayer {
|
|
|
this.riverAnimationPhase = 0;
|
|
this.riverAnimationPhase = 0;
|
|
|
// 图例配置(用于控制不同水利图层颜色)
|
|
// 图例配置(用于控制不同水利图层颜色)
|
|
|
this.legend = [];
|
|
this.legend = [];
|
|
|
|
|
+ that.canalColorOverride = "#F0D09C";
|
|
|
|
|
|
|
|
this.waterLayer = new KMap.VectorLayer("waterLayer", 99, {
|
|
this.waterLayer = new KMap.VectorLayer("waterLayer", 99, {
|
|
|
style: (f) => {
|
|
style: (f) => {
|
|
@@ -44,7 +45,7 @@ class WaterLayer {
|
|
|
|
|
|
|
|
this.canalLayer = new KMap.VectorLayer("canalLayer", 99, {
|
|
this.canalLayer = new KMap.VectorLayer("canalLayer", 99, {
|
|
|
style: (f) => {
|
|
style: (f) => {
|
|
|
- const strokeColor = that.getLayerColor("canal");
|
|
|
|
|
|
|
+ const strokeColor = that.canalColorOverride;
|
|
|
return that.vectorStyle.getPolygonStyle("#00000010", strokeColor, 3)
|
|
return that.vectorStyle.getPolygonStyle("#00000010", strokeColor, 3)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|