Bindto valueAsNumber in layer-group example

(now that #898 is in)
This commit is contained in:
Bruno Binet
2013-08-13 12:36:48 +02:00
parent 3ecb5b89ff
commit 54bf8c2d2a

View File

@@ -44,7 +44,8 @@ function bindInputs(layerid, layer) {
.bindTo('checked', layer, 'visible');
$.each(['opacity', 'hue', 'saturation', 'contrast', 'brightness'],
function(i, v) {
new ol.dom.Input($(layerid + ' .' + v)[0]).bindTo('value', layer, v);
new ol.dom.Input($(layerid + ' .' + v)[0])
.bindTo('valueAsNumber', layer, v);
}
);
}