desc: 地图绘制显示车站公里标,
This commit is contained in:
parent
abf1afcdf2
commit
741af50a2a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user