change class names

This commit is contained in:
jeanpierre
2022-07-16 16:57:14 +02:00
parent 4d2b2c9650
commit c8a28848dd
2 changed files with 6 additions and 6 deletions

View File

@@ -379,7 +379,7 @@ class ScaleLine extends Control {
'1 : ' + Math.round(this.getScaleForResolution()).toLocaleString(); '1 : ' + Math.round(this.getScaleForResolution()).toLocaleString();
const scaleSteps = []; const scaleSteps = [];
const stepWidth = width / this.scaleBarSteps_; const stepWidth = width / this.scaleBarSteps_;
let backgroundColor = 'ol-scale-line-bar-light'; let backgroundColor = 'ol-scale-singlebar-odd';
for (let i = 0; i < this.scaleBarSteps_; i++) { for (let i = 0; i < this.scaleBarSteps_; i++) {
if (i === 0) { if (i === 0) {
// create the first marker at position 0 // create the first marker at position 0
@@ -412,9 +412,9 @@ class ScaleLine extends Control {
} }
// switch style of steps // switch style of steps
backgroundColor = backgroundColor =
backgroundColor === 'ol-scale-line-bar-light' backgroundColor === 'ol-scale-singlebar-odd'
? 'ol-scale-line-bar-dark' ? 'ol-scale-singlebar-even'
: 'ol-scale-line-bar-light'; : 'ol-scale-singlebar-odd';
} }
let scaleBarText; let scaleBarText;

View File

@@ -29,10 +29,10 @@
will-change: contents, width; will-change: contents, width;
transition: all 0.25s; transition: all 0.25s;
} }
.ol-scale-line-bar-dark{ .ol-scale-singlebar-even{
background-color: #000000; background-color: #000000;
} }
.ol-scale-line-bar-light{ .ol-scale-singlebar-odd{
background-color: #ffffff; background-color: #ffffff;
} }
.ol-scale-bar { .ol-scale-bar {