{"action":"created","issue":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1334","repository_url":"https://api.github.com/repos/TerriaJS/terriajs","labels_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1334/labels{/name}","comments_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1334/comments","events_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1334/events","html_url":"https://github.com/TerriaJS/terriajs/issues/1334","id":136232621,"number":1334,"title":"Allow configurable legend options in catalog files","user":{"login":"stevage","id":678344,"avatar_url":"https://avatars.githubusercontent.com/u/678344?v=3","gravatar_id":"","url":"https://api.github.com/users/stevage","html_url":"https://github.com/stevage","followers_url":"https://api.github.com/users/stevage/followers","following_url":"https://api.github.com/users/stevage/following{/other_user}","gists_url":"https://api.github.com/users/stevage/gists{/gist_id}","starred_url":"https://api.github.com/users/stevage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevage/subscriptions","organizations_url":"https://api.github.com/users/stevage/orgs","repos_url":"https://api.github.com/users/stevage/repos","events_url":"https://api.github.com/users/stevage/events{/privacy}","received_events_url":"https://api.github.com/users/stevage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TerriaJS/terriajs/labels/C-Catalogue","name":"C-Catalogue","color":"555577"},{"url":"https://api.github.com/repos/TerriaJS/terriajs/labels/T-Enhancement","name":"T-Enhancement","color":"5555EE"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T00:17:37Z","updated_at":"2016-05-17T23:53:44Z","closed_at":"2016-05-17T23:53:44Z","body":"[Sometimes](https://github.com/NICTA/nationalmap/pull/214/files#r53892783) it'd be nice to override properties of a legend from a catalog file. Maybe something like:\r\n\r\n```\r\n{\r\n              \"url\": \"http://services.ga.gov.au/gis/rest/services/NEXIS_Residential_Population_Density/MapServer\",\r\n              \"type\": \"esri-mapServer\",\r\n              \"legendOptions\": {\r\n                \"title\":\"People per cell\"\r\n              }\r\n}\r\n```\r\n\r\nThe options would just be passed directly through to the `Legend` object, no need to invent anything new here."},"comment":{"url":"https://api.github.com/repos/TerriaJS/terriajs/issues/comments/219888180","html_url":"https://github.com/TerriaJS/terriajs/issues/1334#issuecomment-219888180","issue_url":"https://api.github.com/repos/TerriaJS/terriajs/issues/1334","id":219888180,"user":{"login":"RacingTadpole","id":1757858,"avatar_url":"https://avatars.githubusercontent.com/u/1757858?v=3","gravatar_id":"","url":"https://api.github.com/users/RacingTadpole","html_url":"https://github.com/RacingTadpole","followers_url":"https://api.github.com/users/RacingTadpole/followers","following_url":"https://api.github.com/users/RacingTadpole/following{/other_user}","gists_url":"https://api.github.com/users/RacingTadpole/gists{/gist_id}","starred_url":"https://api.github.com/users/RacingTadpole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RacingTadpole/subscriptions","organizations_url":"https://api.github.com/users/RacingTadpole/orgs","repos_url":"https://api.github.com/users/RacingTadpole/repos","events_url":"https://api.github.com/users/RacingTadpole/events{/privacy}","received_events_url":"https://api.github.com/users/RacingTadpole/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T23:53:44Z","updated_at":"2016-05-17T23:53:44Z","body":"I think this is fixed by the \"name\" option in \"tableStyle.columns\", from #1302."}}