{"action":"created","issue":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/548","labels_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/548/labels{/name}","comments_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/548/comments","events_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/548/events","html_url":"https://github.com/tombatossals/angular-leaflet-directive/issues/548","id":49755681,"number":548,"title":"Populate a map with a list of markers coming from the scope / backend","user":{"login":"gkatsanos","id":1768834,"avatar_url":"https://avatars.githubusercontent.com/u/1768834?v=3","gravatar_id":"","url":"https://api.github.com/users/gkatsanos","html_url":"https://github.com/gkatsanos","followers_url":"https://api.github.com/users/gkatsanos/followers","following_url":"https://api.github.com/users/gkatsanos/following{/other_user}","gists_url":"https://api.github.com/users/gkatsanos/gists{/gist_id}","starred_url":"https://api.github.com/users/gkatsanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkatsanos/subscriptions","organizations_url":"https://api.github.com/users/gkatsanos/orgs","repos_url":"https://api.github.com/users/gkatsanos/repos","events_url":"https://api.github.com/users/gkatsanos/events{/privacy}","received_events_url":"https://api.github.com/users/gkatsanos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-11-21T22:22:41Z","updated_at":"2015-04-21T13:52:40Z","closed_at":"2015-04-21T13:52:19Z","body":"I went through the examples and some past issues but was unable to find something similar to what I'm trying to do; \r\n\r\nI have two controllers, a \"Messages\" controller and the \"MapController\" which is nested inside the messages. Messages generates a list of .. messages - which have a latitude and longitude coordinate. \r\n\r\nI want my Map to present each message as a marker. \r\n\r\nMy messages are rendered with the following : \r\n```\r\n\t\t// Find a list of Messages\r\n\t\t$scope.find = function() {\r\n\t\t\t$scope.messages = Messages.query();\r\n\t\t};\r\n```\r\n\r\nand the view:\r\n```\r\n        <a data-ng-repeat=\"message in messages\" data-ng-href=\"#!/messages/{{message._id}}\" class=\"list-group-item\">\r\n         <small class=\"list-group-item-text\">\r\n            Posted on\r\n            <span data-ng-bind=\"message.created | date:'medium'\"></span>\r\n            by\r\n            <span data-ng-bind=\"message.user.displayName\"></span>\r\n        </small>\r\n        <div data-ng-bind=\"message.body\"></div>\r\n        <div data-ng-bind=\"message.location.lat\"></div>\r\n        <div data-ng-bind=\"message.location.lng\"></div>\r\n    </a>\r\n```"},"comment":{"url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/comments/94799839","html_url":"https://github.com/tombatossals/angular-leaflet-directive/issues/548#issuecomment-94799839","issue_url":"https://api.github.com/repos/tombatossals/angular-leaflet-directive/issues/548","id":94799839,"user":{"login":"nmccready","id":583593,"avatar_url":"https://avatars.githubusercontent.com/u/583593?v=3","gravatar_id":"","url":"https://api.github.com/users/nmccready","html_url":"https://github.com/nmccready","followers_url":"https://api.github.com/users/nmccready/followers","following_url":"https://api.github.com/users/nmccready/following{/other_user}","gists_url":"https://api.github.com/users/nmccready/gists{/gist_id}","starred_url":"https://api.github.com/users/nmccready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmccready/subscriptions","organizations_url":"https://api.github.com/users/nmccready/orgs","repos_url":"https://api.github.com/users/nmccready/repos","events_url":"https://api.github.com/users/nmccready/events{/privacy}","received_events_url":"https://api.github.com/users/nmccready/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T13:52:40Z","updated_at":"2015-04-21T13:52:40Z","body":"@tombatossals what do you think on this issue?"}}