   defaults:
     query: ""
     shown: false
+    showsAllConnections: false
 
 class LayersList extends Backbone.Collection
   model: Layer

    "change .check": "toggleCheckbox"
  toggleCheckbox: (e) ->
    isChecked = @$("input").is ":checked"
    @model.set shown: isChecked
    event = if isChecked then "Showed Layer" else "Hid Layer"
    layerName: @model.get "name"
    mpq.track event,
      name: layerName
      mp_note: "layer: #{layerName}"


layers.bind 'reset', addAll
layers.bind 'add', addOne
allConnectionsLayer = new Layer
    name: "All Fixed Point Links"
    showsAllConnections: true
    shown: true
layers.reset [
  allConnectionsLayer
  new Layer
    name: "Telecom Links"
    query: "clientname CONTAINS IGNORING CASE 'telecom'"
