{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1853","repository_url":"https://api.github.com/repos/angular-ui/angular-google-maps","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1853/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1853/comments","events_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1853/events","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1853","id":155212433,"number":1853,"title":"Async loading and google global error.","user":{"login":"xavhan","id":1308790,"avatar_url":"https://avatars.githubusercontent.com/u/1308790?v=3","gravatar_id":"","url":"https://api.github.com/users/xavhan","html_url":"https://github.com/xavhan","followers_url":"https://api.github.com/users/xavhan/followers","following_url":"https://api.github.com/users/xavhan/following{/other_user}","gists_url":"https://api.github.com/users/xavhan/gists{/gist_id}","starred_url":"https://api.github.com/users/xavhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavhan/subscriptions","organizations_url":"https://api.github.com/users/xavhan/orgs","repos_url":"https://api.github.com/users/xavhan/repos","events_url":"https://api.github.com/users/xavhan/events{/privacy}","received_events_url":"https://api.github.com/users/xavhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-17T09:18:20Z","updated_at":"2016-05-18T11:29:52Z","closed_at":null,"body":"Since I upgraded to 2.3.3 I got 4 errors at loading time.\r\n```\r\nUncaught ReferenceError: google is not defined @ markerwithlabel.js:71\r\nUncaught ReferenceError: google is not defined @ infobox.js:116\r\nUncaught ReferenceError: google is not defined @ keydragzoom.js:820\r\nUncaught ReferenceError: google is not defined @ richmarker.js:60 \r\n```\r\nIt seems to be caused by the async loading of the google maps API.\r\nI saw that https://github.com/angular-ui/angular-google-maps/blob/cb667cb7b55a607929537a2fd8250613e38e9be3/spec/coffee/bootstrap/google-api-mock.coffee#L484 try to mock those but it isn't working.\r\n\r\nBonus : Goal of making those lib dependencies is, I think, to make them optional. Is it doable today?"},"comment":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/comments/219999192","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1853#issuecomment-219999192","issue_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1853","id":219999192,"user":{"login":"marcschregardus","id":1586747,"avatar_url":"https://avatars.githubusercontent.com/u/1586747?v=3","gravatar_id":"","url":"https://api.github.com/users/marcschregardus","html_url":"https://github.com/marcschregardus","followers_url":"https://api.github.com/users/marcschregardus/followers","following_url":"https://api.github.com/users/marcschregardus/following{/other_user}","gists_url":"https://api.github.com/users/marcschregardus/gists{/gist_id}","starred_url":"https://api.github.com/users/marcschregardus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcschregardus/subscriptions","organizations_url":"https://api.github.com/users/marcschregardus/orgs","repos_url":"https://api.github.com/users/marcschregardus/repos","events_url":"https://api.github.com/users/marcschregardus/events{/privacy}","received_events_url":"https://api.github.com/users/marcschregardus/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T11:29:52Z","updated_at":"2016-05-18T11:29:52Z","body":"I'm getting the same problem - and my <ui-gmap-map-control> elements no longer display."}}