Set base layer z-index to 0, fixes #143
This commit is contained in:
parent
282edbbc01
commit
56b5c04a81
2 changed files with 20 additions and 1 deletions
|
|
@ -289,7 +289,11 @@ BR.LayersTab = BR.ControlLayers.extend({
|
|||
|
||||
createLayer: function (layerData) {
|
||||
var layer = this.layersConfig.createLayer(layerData);
|
||||
layer.options.zIndex = this._lastZIndex + 1;
|
||||
var overlay = layerData.properties.overlay;
|
||||
|
||||
// preview z-index, like in BR.ControlLayers._addLayer
|
||||
layer.options.zIndex = overlay ? this._lastZIndex + 1 : 0;
|
||||
|
||||
return layer;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue