refs #23 set default opacity for overlay and overlaywms tile servers of tileservers.php to 0.4
parent
8fbb3c9fc7
commit
cf9f6a2ed3
|
@ -258,7 +258,7 @@
|
||||||
sopacity = parseFloat(sopacity);
|
sopacity = parseFloat(sopacity);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sopacity = 1;
|
sopacity = 0.4;
|
||||||
}
|
}
|
||||||
baseOverlays[sname] = new L.TileLayer(surl, {minZoom: minz, maxZoom: maxz, attribution: sattrib, opacity: sopacity, transparent: stransparent});
|
baseOverlays[sname] = new L.TileLayer(surl, {minZoom: minz, maxZoom: maxz, attribution: sattrib, opacity: sopacity, transparent: stransparent});
|
||||||
});
|
});
|
||||||
|
@ -274,7 +274,7 @@
|
||||||
sopacity = parseFloat(sopacity);
|
sopacity = parseFloat(sopacity);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sopacity = 1;
|
sopacity = 0.4;
|
||||||
}
|
}
|
||||||
var sattrib = $(this).attr('attribution') || '';
|
var sattrib = $(this).attr('attribution') || '';
|
||||||
baseOverlays[sname] = new L.tileLayer.wms(surl, {layers: slayers, version: sversion, transparent: stransparent, opacity: sopacity, format: sformat, attribution: sattrib});
|
baseOverlays[sname] = new L.tileLayer.wms(surl, {layers: slayers, version: sversion, transparent: stransparent, opacity: sopacity, format: sformat, attribution: sattrib});
|
||||||
|
|
Loading…
Reference in New Issue