From 58292f534b4b6a22344bb673f1e18e04ce34f51e Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Wed, 3 May 2017 10:22:28 +0200 Subject: [PATCH] Added print zoom scale to action (#1770) --- web/client/components/mapcontrols/scale/ScaleBox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/components/mapcontrols/scale/ScaleBox.jsx b/web/client/components/mapcontrols/scale/ScaleBox.jsx index d2c52610af..af0f2152bb 100644 --- a/web/client/components/mapcontrols/scale/ScaleBox.jsx +++ b/web/client/components/mapcontrols/scale/ScaleBox.jsx @@ -39,7 +39,7 @@ var ScaleBox = React.createClass({ }, onComboChange(event) { var selectedZoomLvl = parseInt(event.nativeEvent.target.value, 10); - this.props.onChange(selectedZoomLvl); + this.props.onChange(selectedZoomLvl, this.props.scales[selectedZoomLvl]); }, getOptions() { return this.props.scales.map((item, index) => {