function getSiblingsForLayer(layer) {
  var parent = layer.parentGroup()
  if (!parent) return

  var siblings = []
  parent.layers().forEach(function(child) {
    if (child != layer) {
      siblings.push(child)
    }
  })

  return siblings
}
Get all siblings to a given layer