refs #23 set default opacity for overlay and overlaywms tile servers of tileservers.php to 0.4

merge-requests/2/head
Julien Veyssier 2017-06-12 18:50:19 +02:00
parent 8fbb3c9fc7
commit cf9f6a2ed3
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@
sopacity = parseFloat(sopacity);
}
else {
sopacity = 1;
sopacity = 0.4;
}
baseOverlays[sname] = new L.TileLayer(surl, {minZoom: minz, maxZoom: maxz, attribution: sattrib, opacity: sopacity, transparent: stransparent});
});
@ -274,7 +274,7 @@
sopacity = parseFloat(sopacity);
}
else {
sopacity = 1;
sopacity = 0.4;
}
var sattrib = $(this).attr('attribution') || '';
baseOverlays[sname] = new L.tileLayer.wms(surl, {layers: slayers, version: sversion, transparent: stransparent, opacity: sopacity, format: sformat, attribution: sattrib});