{"action":"created","issue":{"url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/209","labels_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/209/comments","events_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/209/events","html_url":"https://github.com/allenhwkim/angularjs-google-maps/issues/209","id":76486506,"number":209,"title":"Listening to zoom and drag events","user":{"login":"markolbert","id":9095610,"avatar_url":"https://avatars.githubusercontent.com/u/9095610?v=3","gravatar_id":"","url":"https://api.github.com/users/markolbert","html_url":"https://github.com/markolbert","followers_url":"https://api.github.com/users/markolbert/followers","following_url":"https://api.github.com/users/markolbert/following{/other_user}","gists_url":"https://api.github.com/users/markolbert/gists{/gist_id}","starred_url":"https://api.github.com/users/markolbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markolbert/subscriptions","organizations_url":"https://api.github.com/users/markolbert/orgs","repos_url":"https://api.github.com/users/markolbert/repos","events_url":"https://api.github.com/users/markolbert/events{/privacy}","received_events_url":"https://api.github.com/users/markolbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T20:50:09Z","updated_at":"2015-05-14T21:17:56Z","closed_at":null,"body":"I'm a little confused as to how to listen to zoom and drag events. Do I setup an angular listener (e.g., $scope.$on(\"dragend\", function()...)) or do I reference in the map markup and define a method?\r\n\r\nIn looking at the examples I noticed that the second approach -- putting the on... attribute in the markup -- is what's used. But I also noticed that the handler method was defined within the map initialized event handler (which uses the listener approach). Does the handler have to be defined within the map initialized callback?"},"comment":{"url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/comments/102172226","html_url":"https://github.com/allenhwkim/angularjs-google-maps/issues/209#issuecomment-102172226","issue_url":"https://api.github.com/repos/allenhwkim/angularjs-google-maps/issues/209","id":102172226,"user":{"login":"markolbert","id":9095610,"avatar_url":"https://avatars.githubusercontent.com/u/9095610?v=3","gravatar_id":"","url":"https://api.github.com/users/markolbert","html_url":"https://github.com/markolbert","followers_url":"https://api.github.com/users/markolbert/followers","following_url":"https://api.github.com/users/markolbert/following{/other_user}","gists_url":"https://api.github.com/users/markolbert/gists{/gist_id}","starred_url":"https://api.github.com/users/markolbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markolbert/subscriptions","organizations_url":"https://api.github.com/users/markolbert/orgs","repos_url":"https://api.github.com/users/markolbert/repos","events_url":"https://api.github.com/users/markolbert/events{/privacy}","received_events_url":"https://api.github.com/users/markolbert/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T21:17:56Z","updated_at":"2015-05-14T21:17:56Z","body":"Thanx, Allen!\r\n\r\nFrom: Allen Kim [mailto:notifications@github.com]\r\nSent: Thursday, May 14, 2015 2:17 PM\r\nTo: allenhwkim/angularjs-google-maps\r\nCc: Mark Olbert\r\nSubject: Re: [angularjs-google-maps] Listening to zoom and drag events (#209)\r\n\r\n\r\nAs you see here,\r\nhttps://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/events.html\r\n\r\nEvents are assigned as an attribute with prefix of on-. You can use on-dragend since it is a google map event(https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_events.html)\r\n\r\nPlease code like this, on-dragend=myFunctionInScope\r\n\r\nFor more examples, https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/index.html\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/allenhwkim/angularjs-google-maps/issues/209#issuecomment-102171728>.\r\n"}}