Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove unneeded parseFloat in slide function - parseFloat causes severe lag when passed into setOpacity. It is not necessary to parse here as the step, min and max values are defined.

ZachTRice4b1f68efed61
diff --git a/web/js/layers/options.js b/web/js/layers/options.js
index 1aec35e28..2244e6c80 100644
--- a/web/js/layers/options.js
+++ b/web/js/layers/options.js
@@ -147,8 +147,7 @@ export function layersOptions(config, models, layer) {
}
})
.on('slide', function () {
- models.layers.setOpacity(layer.id, parseFloat($(this)
- .val()));
+ models.layers.setOpacity(layer.id, $(this).val());
});
var $label = $('<div></div>')
.addClass('wv-label')