desc: 地图绘制显示车站公里标,

This commit is contained in:
zyy 2019-08-30 17:58:15 +08:00
parent abf1afcdf2
commit 741af50a2a

View File

@ -38,9 +38,8 @@ export default class Station extends Group {
textFill: model.nameFontColor
});
this.add(this.stationText);
}
if (style.Station.kmPostShow) {
const path = window.location.href;
if (style.Station.kmPostShow || path.includes('/map/draw')) {
// 公里标是否显示
let direction = 1;
if (this.style.Station.kilometerPosition == 'up') {
@ -63,6 +62,7 @@ export default class Station extends Group {
this.add(this.mileageText);
}
}
}
// eslint-disable-next-line no-unused-vars
setState(model) {