Use a range input to select the number of steps (1 to 8)

This commit is contained in:
Maximilian Krög
2022-08-06 23:07:25 +02:00
parent 436a4ca597
commit 03a16e3444
3 changed files with 9 additions and 9 deletions
+2 -6
View File
@@ -23,12 +23,8 @@ tags: "scale-line, openstreetmap"
</select>
<div id="scaleBarOptions">
<select id="steps">
<option value=2>2 steps</option>
<option value=4 selected>4 steps</option>
<option value=6>6 steps</option>
<option value=8>8 steps</option>
</select>
<label for="steps">Steps:</label>
<input id="steps" type="range" value="4" min="1" max="8">
<label><input type="checkbox" id="showScaleText" checked> Show scale text</label>