diff --git a/web/client/components/mapcontrols/scale/ScaleBox.jsx b/web/client/components/mapcontrols/scale/ScaleBox.jsx
index e3c780bda7..39333c2303 100644
--- a/web/client/components/mapcontrols/scale/ScaleBox.jsx
+++ b/web/client/components/mapcontrols/scale/ScaleBox.jsx
@@ -45,7 +45,7 @@ class ScaleBox extends React.Component {
}
onComboChange = (event) => {
- var selectedZoomLvl = parseInt(event.nativeEvent.target.value, 10);
+ let selectedZoomLvl = parseInt(event.nativeEvent.target.value, 10);
this.props.onChange(selectedZoomLvl, this.props.scales[selectedZoomLvl]);
};
@@ -58,14 +58,15 @@ class ScaleBox extends React.Component {
};
render() {
- var control = null;
+ let control = null;
+ const currentZoomLvl = Math.round(this.props.currentZoomLvl);
if (this.props.readOnly) {
control =
-
+
;
} else if (this.props.useRawInput) {
control =
- (