{"action":"created","issue":{"url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/issues/55","repository_url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning","labels_url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/issues/55/comments","events_url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/issues/55/events","html_url":"https://github.com/CoastalResilienceNetwork/regional-planning/pull/55","id":179591422,"number":55,"title":"Use layer id to disamgibuate layers","user":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"assignees":[{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-09-27T19:35:23Z","updated_at":"2016-09-27T19:59:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/pulls/55","html_url":"https://github.com/CoastalResilienceNetwork/regional-planning/pull/55","diff_url":"https://github.com/CoastalResilienceNetwork/regional-planning/pull/55.diff","patch_url":"https://github.com/CoastalResilienceNetwork/regional-planning/pull/55.patch"},"body":"If there are layers within the same map service that have the same name,\r\nallow developers to specify the layer id in the config to disambiguate\r\nthese layers.\r\n\r\nUpdate the documentation accordingly.\r\n\r\n**Testing**\r\n- Update `layers.json` with the following:\r\n\r\n```json\r\n[\r\n    {\r\n        \"name\": \"Grenada\",\r\n        \"server\": {\r\n            \"type\": \"ags\",\r\n            \"layerType\": \"dynamic\",\r\n            \"url\": \"http://dev.services2.coastalresilience.org/arcgis/rest/services/GSVG\",\r\n            \"name\": \"GSVG\"\r\n        },\r\n        \"includeLayers\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Inundation Scenarios\",\r\n                \"includeAllLayers\": true\r\n            },\r\n            {\r\n                \"name\": \"Ecological\",\r\n                \"id\": 9,\r\n                \"includeAllLayers\": true\r\n            },\r\n            {\r\n                \"id\": 19,\r\n                \"name\": \"Social and Economic\",\r\n                \"includeLayers\": [\r\n                    {\r\n                        \"id\": 20,\r\n                        \"name\": \"Critical Infrastructure\",\r\n                        \"includeAllLayers\": true\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"name\": \"St Vincent and the Grenadines\",\r\n        \"server\": {\r\n            \"type\": \"ags\",\r\n            \"layerType\": \"dynamic\",\r\n            \"url\": \"http://dev.services2.coastalresilience.org/arcgis/rest/services/GSVG\",\r\n            \"name\": \"GSVG\"\r\n        },\r\n        \"includeLayers\": [\r\n            {\r\n                \"id\": 115,\r\n                \"name\": \"Inundation Scenarios\",\r\n                \"includeAllLayers\": true\r\n            },\r\n            {\r\n                \"id\": 123,\r\n                \"name\": \"Ecological\",\r\n                \"includeAllLayers\": true\r\n            },\r\n            {\r\n                \"id\": 133,\r\n                \"name\": \"Social and Economic\",\r\n                \"includeLayers\": [\r\n                    {\r\n                        \"id\": 134,\r\n                        \"name\": \"Critical Infrastructure\",\r\n                        \"includeAllLayers\": true\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    }\r\n]\r\n```\r\n- Toggle the layers, and verify that the duplicate layers in each group are in fact turning on and off different layers.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1042475/18888418/39f8a43c-84c6-11e6-85d0-d856282b732d.png)\r\n\r\n\r\nConnects to #51"},"comment":{"url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/issues/comments/249980343","html_url":"https://github.com/CoastalResilienceNetwork/regional-planning/pull/55#issuecomment-249980343","issue_url":"https://api.github.com/repos/CoastalResilienceNetwork/regional-planning/issues/55","id":249980343,"user":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T19:59:34Z","updated_at":"2016-09-27T19:59:34Z","body":"+1 Great fix!"}}
{"actor":{"display_login":"kdeloach"}}