diff --git a/src/jmapNew/shape/Section/ELines.js b/src/jmapNew/shape/Section/ELines.js index 298f1b43f..c72fb9127 100644 --- a/src/jmapNew/shape/Section/ELines.js +++ b/src/jmapNew/shape/Section/ELines.js @@ -390,7 +390,9 @@ export default class ELines extends Group { setCrossSpeedUpperLimit(speedLimit) { this.crossSpeedText && this.crossSpeedText.setStyle({text:speedLimit, textFill: 'red' }); } - + setCrossDefault() { + this.crossSection && this.crossSection.setStyle({fill:this.model.style.Section.cross.crossSection.fillColor}); + } setZleve(lev) { this.section && this.section.attr('z', lev); } diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 6f1cfbdd1..5a0bc429c 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -99,6 +99,7 @@ export default class Section extends Group { }); } this.line.setCrossSpeedUpperLimit(''); + this.line.setCrossDefault(); } this.name && this.name.recover(); this.speedLimit && this.speedLimit.hide();