{"action":"created","issue":{"url":"https://api.github.com/repos/lkpanganiban/ppaprototype/issues/15","labels_url":"https://api.github.com/repos/lkpanganiban/ppaprototype/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/lkpanganiban/ppaprototype/issues/15/comments","events_url":"https://api.github.com/repos/lkpanganiban/ppaprototype/issues/15/events","html_url":"https://github.com/lkpanganiban/ppaprototype/issues/15","id":129968395,"number":15,"title":"add a dropdown list of systems of measurement such as m, km, miles, etc.","user":{"login":"chamthesleeptalker","id":4580789,"avatar_url":"https://avatars.githubusercontent.com/u/4580789?v=3","gravatar_id":"","url":"https://api.github.com/users/chamthesleeptalker","html_url":"https://github.com/chamthesleeptalker","followers_url":"https://api.github.com/users/chamthesleeptalker/followers","following_url":"https://api.github.com/users/chamthesleeptalker/following{/other_user}","gists_url":"https://api.github.com/users/chamthesleeptalker/gists{/gist_id}","starred_url":"https://api.github.com/users/chamthesleeptalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamthesleeptalker/subscriptions","organizations_url":"https://api.github.com/users/chamthesleeptalker/orgs","repos_url":"https://api.github.com/users/chamthesleeptalker/repos","events_url":"https://api.github.com/users/chamthesleeptalker/events{/privacy}","received_events_url":"https://api.github.com/users/chamthesleeptalker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-30T10:01:38Z","updated_at":"2016-01-31T03:06:19Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/lkpanganiban/ppaprototype/issues/comments/177367937","html_url":"https://github.com/lkpanganiban/ppaprototype/issues/15#issuecomment-177367937","issue_url":"https://api.github.com/repos/lkpanganiban/ppaprototype/issues/15","id":177367937,"user":{"login":"lkpanganiban","id":6139863,"avatar_url":"https://avatars.githubusercontent.com/u/6139863?v=3","gravatar_id":"","url":"https://api.github.com/users/lkpanganiban","html_url":"https://github.com/lkpanganiban","followers_url":"https://api.github.com/users/lkpanganiban/followers","following_url":"https://api.github.com/users/lkpanganiban/following{/other_user}","gists_url":"https://api.github.com/users/lkpanganiban/gists{/gist_id}","starred_url":"https://api.github.com/users/lkpanganiban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkpanganiban/subscriptions","organizations_url":"https://api.github.com/users/lkpanganiban/orgs","repos_url":"https://api.github.com/users/lkpanganiban/repos","events_url":"https://api.github.com/users/lkpanganiban/events{/privacy}","received_events_url":"https://api.github.com/users/lkpanganiban/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T03:06:19Z","updated_at":"2016-01-31T03:06:19Z","body":"Add this in map.js just after measurecontrol.addTo(map);\r\n```\r\n$('#measurement-dropdown').on('change', function() {\r\n    units = $('#measurement-dropdown').val();\r\n       switch(units){\r\n        case \"meters\":\r\n            measurecontrol.options.primaryLengthUnit = 'meters';\r\n            measurecontrol.options.primaryAreaUnit = 'sqmeters';\r\n            break;\r\n        case \"feet\":\r\n            measurecontrol.options.primaryLengthUnit = 'feet';\r\n            measurecontrol.options.primaryAreaUnit = 'sqfeet';\r\n            break;\r\n        case \"kilometers\":\r\n            measurecontrol.options.primaryLengthUnit = 'kilometers';\r\n            measurecontrol.options.primaryAreaUnit = 'hectares';\r\n            break;\r\n        case \"miles\":\r\n            measurecontrol.options.primaryLengthUnit = 'miles';\r\n            measurecontrol.options.primaryAreaUnit = 'acres';\r\n            break;\r\n        default:\r\n            measurecontrol.options.primaryLengthUnit = 'meters';\r\n            measurecontrol.options.primaryAreaUnit = 'sqmeters';\r\n    }\r\n});\r\n```\r\n\r\nalso modify the measure panel in index.html\r\n```\r\n            <div class=\"sidebar-pane\" id=\"measure\">\r\n                <h1 class=\"sidebar-header\">Measure<div class=\"sidebar-close\"></div></h1>\r\n                <h5><strong>Measure Areas and Distances</strong></h5>\r\n                <a href=\"javascript:showMeasureControl();\"><button class=\"btn\">Create a New Measurement</button></a>\r\n                <p></p>\r\n                <p><h5><strong>Units of Measurement</strong></h5></p>\r\n                <select id='measurement-dropdown'>\r\n                    <option value='meters'>Meters</option>\r\n                    <option value='feet'>Feet</option>\r\n                    <option value='kilometers'>Kilometers</option>\r\n                    <option value='miles'>Miles</option>\r\n                </select>\r\n            </div>\r\n```\r\n\r\n"}}