Layers change tiles example

This is a map that can change the tiles of the main layer by demand

Current TileLayer Url:

[
  {
    "name": "OpenStreetMap",
    "active": true,
    "source": {
      "type": "OSM"
    },
    "visible": true,
    "opacity": 1
  },
  {
    "name": "OpenCycleMap",
    "active": false,
    "source": {
      "type": "OSM",
      "url": "http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png",
      "attribution": "All maps &copy; <a href=\"http://www.opencyclemap.org/\">OpenCycleMap</a>"
    }
  },
  {
    "name": "MapBox Night",
    "active": false,
    "source": {
      "type": "TileJSON",
      "url": "https://api.tiles.mapbox.com/v3/examples.map-0l53fhk2.jsonp"
    }
  },
  {
    "name": "MapBox Terrain",
    "active": false,
    "source": {
      "type": "TileJSON",
      "url": "https://api.tiles.mapbox.com/v3/examples.map-i86nkdio.jsonp"
    }
  },
  {
    "name": "Mapbox Geography Class",
    "active": false,
    "source": {
      "type": "TileJSON",
      "url": "http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp"
    }
  }
]