default opacity 0.67 (#36)

This commit is contained in:
Norbert Renner 2016-06-14 17:03:16 +02:00
parent a54cc31a0f
commit 83ce7ff79a
3 changed files with 6 additions and 3 deletions

View file

@ -8,7 +8,7 @@ BR.OpacitySlider = L.Control.extend({
var container = L.DomUtil.create('div', 'leaflet-bar control-slider'),
input = $('<input id="slider" type="text"/>'),
item = localStorage.opacitySliderValue,
value = item ? parseInt(item) : 100,
value = item ? parseInt(item) : BR.conf.defaultOpacity * 100,
minOpacity = (BR.conf.minOpacity || 0) * 100;
if (value < minOpacity) {