@@ -37,15 +37,15 @@ export class ScaleLine extends Scale {
3737 this . viewState_ = frameState . viewState ; //NOSONAR
3838 }
3939 this . updateElementRepair ( ) ; //NOSONAR
40- }
40+ } ;
4141 super ( options ) ; //NOSONAR
4242 }
4343
4444 updateElementRepair ( ) {
45- const viewState = this . viewState_ || this . o ;
45+ const viewState = this . viewState_ || this . o || this . Om ;
4646
4747 if ( ! viewState ) {
48- this . renderedVisible_ = this . renderedVisible_ || this . j ;
48+ this . renderedVisible_ = this . renderedVisible_ || this . j || this . yn ;
4949 if ( this . renderedVisible_ ) {
5050 this . element_ = this . element_ || this . c ;
5151 this . element . style . display = 'none' ;
@@ -62,7 +62,7 @@ export class ScaleLine extends Scale {
6262 "m" ;
6363 let pointResolution =
6464 olProj . getPointResolution ( projection , viewState . resolution , center , pointResolutionUnits ) ;
65- this . minWidth_ = this . minWidth_ || this . v ;
65+ this . minWidth_ = this . minWidth_ || this . v || this . Em ;
6666 let nominalCount = this . minWidth_ * pointResolution ;
6767 let suffix = '' ;
6868 if ( units == "degrees" ) {
@@ -136,10 +136,10 @@ export class ScaleLine extends Scale {
136136 }
137137 ++ i ;
138138 }
139- this . renderedHTML_ = this . renderedHTML_ || this . D ;
140- this . innerElement_ = this . innerElement_ || this . l ;
141- this . renderedWidth_ = this . renderedWidth_ || this . B ;
142- this . renderedVisible_ = this . renderedVisible_ || this . j ;
139+ this . renderedHTML_ = this . renderedHTML_ || this . D || this . am ;
140+ this . innerElement_ = this . innerElement_ || this . l || this . Tm ;
141+ this . renderedWidth_ = this . renderedWidth_ || this . B || this . Am ;
142+ this . renderedVisible_ = this . renderedVisible_ || this . j || this . yn ;
143143 this . element_ = this . element_ || this . c ;
144144 let html = count . toFixed ( decimalCount < 0 ? - decimalCount : 0 ) + ' ' + suffix ;
145145 if ( this . renderedHTML_ != html ) {
@@ -158,4 +158,4 @@ export class ScaleLine extends Scale {
158158 }
159159
160160 }
161- }
161+ }
0 commit comments