{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/34","labels_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/34/comments","events_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/34/events","html_url":"https://github.com/angular-ui/ui-leaflet/issues/34","id":114087115,"number":34,"title":"custom layers","user":{"login":"nmccready","id":583593,"avatar_url":"https://avatars.githubusercontent.com/u/583593?v=3","gravatar_id":"","url":"https://api.github.com/users/nmccready","html_url":"https://github.com/nmccready","followers_url":"https://api.github.com/users/nmccready/followers","following_url":"https://api.github.com/users/nmccready/following{/other_user}","gists_url":"https://api.github.com/users/nmccready/gists{/gist_id}","starred_url":"https://api.github.com/users/nmccready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmccready/subscriptions","organizations_url":"https://api.github.com/users/nmccready/orgs","repos_url":"https://api.github.com/users/nmccready/repos","events_url":"https://api.github.com/users/nmccready/events{/privacy}","received_events_url":"https://api.github.com/users/nmccready/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T16:18:13Z","updated_at":"2015-10-29T16:18:14Z","closed_at":null,"body":"_From @robotnic on December 11, 2014 14:49_\n\nI wan't to use 2 special layers\r\n\r\nhttps://github.com/glenrobertson/leaflet-tilelayer-geojson\r\nand\r\nhttps://github.com/afsuarez/mapsforge-cordova-plugin\r\n\r\nI have seen \"custom\" layer in the source code, but I don't know how to use that.\r\n\r\n\n\n_Copied from original issue: tombatossals/angular-leaflet-directive#564_"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/comments/152232725","html_url":"https://github.com/angular-ui/ui-leaflet/issues/34#issuecomment-152232725","issue_url":"https://api.github.com/repos/angular-ui/ui-leaflet/issues/34","id":152232725,"user":{"login":"nmccready","id":583593,"avatar_url":"https://avatars.githubusercontent.com/u/583593?v=3","gravatar_id":"","url":"https://api.github.com/users/nmccready","html_url":"https://github.com/nmccready","followers_url":"https://api.github.com/users/nmccready/followers","following_url":"https://api.github.com/users/nmccready/following{/other_user}","gists_url":"https://api.github.com/users/nmccready/gists{/gist_id}","starred_url":"https://api.github.com/users/nmccready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmccready/subscriptions","organizations_url":"https://api.github.com/users/nmccready/orgs","repos_url":"https://api.github.com/users/nmccready/repos","events_url":"https://api.github.com/users/nmccready/events{/privacy}","received_events_url":"https://api.github.com/users/nmccready/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T16:18:14Z","updated_at":"2015-10-29T16:18:14Z","body":"_From @ageblade on August 30, 2015 7:5_\n\nHi, this is the way you can use custom layers (This example use leaflet IIP plugin)\r\n```\r\n$scope.layers.overlays[\"iip\"] = {\r\n    name: 'iip',\r\n    type: 'custom',\r\n    visible: true,\r\n    layer: L.tileLayer.iip(url, options)\r\n};\r\n```\r\nJust initialize your custom layer into the layer property and set a name, visible and type = 'custom'.\r\n\r\nGood luck,"}}