{"action":"closed","issue":{"url":"https://api.github.com/repos/manifestinteractive/jqvmap/issues/14","labels_url":"https://api.github.com/repos/manifestinteractive/jqvmap/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/manifestinteractive/jqvmap/issues/14/comments","events_url":"https://api.github.com/repos/manifestinteractive/jqvmap/issues/14/events","html_url":"https://github.com/manifestinteractive/jqvmap/issues/14","id":5005729,"number":14,"title":"Is it possible to dynamically change colour using a region name instead of code?","user":{"login":"johnnycopperstone","id":1838917,"avatar_url":"https://avatars.githubusercontent.com/u/1838917?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnycopperstone","html_url":"https://github.com/johnnycopperstone","followers_url":"https://api.github.com/users/johnnycopperstone/followers","following_url":"https://api.github.com/users/johnnycopperstone/following{/other_user}","gists_url":"https://api.github.com/users/johnnycopperstone/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnycopperstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnycopperstone/subscriptions","organizations_url":"https://api.github.com/users/johnnycopperstone/orgs","repos_url":"https://api.github.com/users/johnnycopperstone/repos","events_url":"https://api.github.com/users/johnnycopperstone/events{/privacy}","received_events_url":"https://api.github.com/users/johnnycopperstone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/manifestinteractive/jqvmap/labels/Won't%20Fix","name":"Won't Fix","color":"AA0000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-06-11T15:25:56Z","updated_at":"2015-10-17T11:23:58Z","closed_at":"2015-10-17T11:23:58Z","body":"I have a selected list of top 5 countries. I would like to be able to dynamically change the colour of these countries on the map, after the map is created. \n\nI basically want to be able to do this:\n<code>$('#map').vectorMap('set', 'colors', { us: '#8EE5EE' });</code>\n\nHowever instead of 'us' I'd like to use 'United States'.\n\nEither that or else some way of retrieving the code using the region.\n\nThanks in advance"}}