|
@@ -29,6 +29,10 @@ class StaticImgLayer extends LTBaseObject{
|
|
|
initStaticImgLayer(url,options,zIndex){
|
|
|
var minZoom = Common.BaseLayerZoom[0];
|
|
|
var maxZoom = Common.BaseLayerZoom[1];
|
|
|
+ let opacity = 1;
|
|
|
+ if(options && options.opacity != undefined){
|
|
|
+ opacity = options.opacity
|
|
|
+ }
|
|
|
if(options && options.minZoom != undefined){
|
|
|
minZoom = options.minZoom
|
|
|
}
|
|
@@ -46,6 +50,7 @@ class StaticImgLayer extends LTBaseObject{
|
|
|
source:vm.source,
|
|
|
maxZoom:maxZoom,
|
|
|
minZoom:minZoom,
|
|
|
+ opacity:opacity,
|
|
|
zIndex:zIndex,
|
|
|
extent:options.extent || [Infinity, -Infinity, -Infinity, Infinity]
|
|
|
})
|