Add setZIndex to LayerGroup to allow LayerGroups to work better with the layers control. Fixes #1096
This commit is contained in:
parent
d0b8ca9ef0
commit
b28b6da924
@ -82,6 +82,15 @@ L.LayerGroup = L.Class.extend({
|
|||||||
method.call(context, this._layers[i]);
|
method.call(context, this._layers[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
setZIndex: function(zIndex)
|
||||||
|
{
|
||||||
|
this.eachLayer(function(l) {
|
||||||
|
if (l.setZIndex) {
|
||||||
|
l.setZIndex(zIndex);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user