{"action":"created","issue":{"url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/issues/86","labels_url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/issues/86/comments","events_url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/issues/86/events","html_url":"https://github.com/alookatommorow/west-coast-skateparks/pull/86","id":129896944,"number":86,"title":"Map Info Windows","user":{"login":"alookatommorow","id":10751085,"avatar_url":"https://avatars.githubusercontent.com/u/10751085?v=3","gravatar_id":"","url":"https://api.github.com/users/alookatommorow","html_url":"https://github.com/alookatommorow","followers_url":"https://api.github.com/users/alookatommorow/followers","following_url":"https://api.github.com/users/alookatommorow/following{/other_user}","gists_url":"https://api.github.com/users/alookatommorow/gists{/gist_id}","starred_url":"https://api.github.com/users/alookatommorow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alookatommorow/subscriptions","organizations_url":"https://api.github.com/users/alookatommorow/orgs","repos_url":"https://api.github.com/users/alookatommorow/repos","events_url":"https://api.github.com/users/alookatommorow/events{/privacy}","received_events_url":"https://api.github.com/users/alookatommorow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-29T22:14:14Z","updated_at":"2016-01-29T22:41:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/pulls/86","html_url":"https://github.com/alookatommorow/west-coast-skateparks/pull/86","diff_url":"https://github.com/alookatommorow/west-coast-skateparks/pull/86.diff","patch_url":"https://github.com/alookatommorow/west-coast-skateparks/pull/86.patch"},"body":"#### Add map_format methods and tests\r\nAdd methods to Skatepark model:\r\n* Add `map_format_nearby` (pending rename) \r\n - creates a `json` object that includes skatepark attributes as well as `pictures` and `firstPicture`\r\n* Add `map_format` \r\n  - creates a `json` object that includes skatepark attributes as well as `pictures`, `nearbyParks`, and `firstPicture`\r\n - calls `map_format_nearby` on each of the `nearbyParks`\r\n*Add test for these methods\r\n\r\n#### Add infowindow to each marker\r\n* Add function to `maps.js` to generate infowindow content string\r\n* Implementation of methods above allowed JS for maps to be refactored with fewer variables being passed around\r\n\r\n\r\nJs for maps is much cleaner but functions are still floating in space and could benefit from further refactoring.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/issues/comments/177002993","html_url":"https://github.com/alookatommorow/west-coast-skateparks/pull/86#issuecomment-177002993","issue_url":"https://api.github.com/repos/alookatommorow/west-coast-skateparks/issues/86","id":177002993,"user":{"login":"yago580","id":10933051,"avatar_url":"https://avatars.githubusercontent.com/u/10933051?v=3","gravatar_id":"","url":"https://api.github.com/users/yago580","html_url":"https://github.com/yago580","followers_url":"https://api.github.com/users/yago580/followers","following_url":"https://api.github.com/users/yago580/following{/other_user}","gists_url":"https://api.github.com/users/yago580/gists{/gist_id}","starred_url":"https://api.github.com/users/yago580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yago580/subscriptions","organizations_url":"https://api.github.com/users/yago580/orgs","repos_url":"https://api.github.com/users/yago580/repos","events_url":"https://api.github.com/users/yago580/events{/privacy}","received_events_url":"https://api.github.com/users/yago580/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T22:41:58Z","updated_at":"2016-01-29T22:41:58Z","body":"We might be able to pull [this](https://github.com/alookatommorow/west-coast-skateparks/blob/master/app/views/skateparks/show.html.erb#L162-L195) out into `skateparks#show`"}}