调整哈尔滨线路车站包围框显示

This commit is contained in:
joylink_zyy 2020-02-03 17:26:17 +08:00
parent 4464229ac5
commit f11865385b
2 changed files with 7 additions and 0 deletions

View File

@ -268,6 +268,7 @@ class SkinCode extends defaultStyle {
kmPostShow: true, // 公里标显示
kilometerPosition: 'up', // 公里标朝向
text: {
borderShow: true, // 车站包围框显示
fontSize: 11, // 字体大小
fontWeight: 'normal', // 字体粗细
distance: 5 // 灯跟文字距离

View File

@ -46,6 +46,12 @@ export default class Station extends Group {
textFill: model.nameFontColor
});
this.add(this.stationText);
if (style.Station.text.borderShow) {
this.stationText.setStyle('textPadding', [2, 6]);
this.stationText.setStyle('textBorderColor', model.nameFontColor);
this.stationText.setStyle('textBorderWidth', 1);
}
const path = window.location.href;
if (style.Station.kmPostShow || path.includes('/map/draw')) {
// 公里标是否显示