{"action":"created","issue":{"url":"https://api.github.com/repos/southern-wind/wind/issues/18","labels_url":"https://api.github.com/repos/southern-wind/wind/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/southern-wind/wind/issues/18/comments","events_url":"https://api.github.com/repos/southern-wind/wind/issues/18/events","html_url":"https://github.com/southern-wind/wind/issues/18","id":127937252,"number":18,"title":"Different styled lines for different link types on maps","user":{"login":"spinza","id":3501598,"avatar_url":"https://avatars.githubusercontent.com/u/3501598?v=3","gravatar_id":"","url":"https://api.github.com/users/spinza","html_url":"https://github.com/spinza","followers_url":"https://api.github.com/users/spinza/followers","following_url":"https://api.github.com/users/spinza/following{/other_user}","gists_url":"https://api.github.com/users/spinza/gists{/gist_id}","starred_url":"https://api.github.com/users/spinza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinza/subscriptions","organizations_url":"https://api.github.com/users/spinza/orgs","repos_url":"https://api.github.com/users/spinza/repos","events_url":"https://api.github.com/users/spinza/events{/privacy}","received_events_url":"https://api.github.com/users/spinza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T14:36:36Z","updated_at":"2016-01-25T06:38:14Z","closed_at":null,"body":"Our members loved this about our old wind.  We had different styled lines for our map based on the link type.  Better links being more prominent.\r\n\r\nIdeally the style should be configurable in the config/config.php.\r\n@MDE186 is going to look at this for us.\r\n"},"comment":{"url":"https://api.github.com/repos/southern-wind/wind/issues/comments/174416770","html_url":"https://github.com/southern-wind/wind/issues/18#issuecomment-174416770","issue_url":"https://api.github.com/repos/southern-wind/wind/issues/18","id":174416770,"user":{"login":"jammin84","id":6802951,"avatar_url":"https://avatars.githubusercontent.com/u/6802951?v=3","gravatar_id":"","url":"https://api.github.com/users/jammin84","html_url":"https://github.com/jammin84","followers_url":"https://api.github.com/users/jammin84/followers","following_url":"https://api.github.com/users/jammin84/following{/other_user}","gists_url":"https://api.github.com/users/jammin84/gists{/gist_id}","starred_url":"https://api.github.com/users/jammin84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jammin84/subscriptions","organizations_url":"https://api.github.com/users/jammin84/orgs","repos_url":"https://api.github.com/users/jammin84/repos","events_url":"https://api.github.com/users/jammin84/events{/privacy}","received_events_url":"https://api.github.com/users/jammin84/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T06:38:14Z","updated_at":"2016-01-25T06:38:14Z","body":"The current mapping shows it as per the node \"status\", but I can see the proposed method being of value also. \r\n\r\nI also agree to these being configurable.\r\n\r\nFYI @MDE186. its currently found in \r\n/templates/basic//scripts/javascripts/map.js\r\n\r\n```\r\n\t\t\t// Color mapping for nodes\r\n\t\t\tvar colors_per_type = {\r\n\t\t\t\t'p2p' : '#f5c70c',\r\n\t\t\t\t'p2p-ap' : '#f5c70c',\r\n\t\t\t\t'ap' : '#61d961',\r\n\t\t\t\t'client' : '#5858ff',\r\n\t\t\t\t'unlinked' : '#ff3f4f',\r\n\t\t\t};\r\n```\r\n\r\nand a bit further down the link colours.\r\n```\r\n\t\t\tproperties['color'] = (link['status'] == 'active')\r\n\t\t\t\t?'#0099FF' //blue line link color\r\n\t\t\t\t:'#FF8C95'; //red\r\n```\r\nNote: WAFN use a modified red as above rather than the #ff0000 in the original code, which was chosen for its readability."}}