{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1604","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1604/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1604/comments","events_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1604/events","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1604","id":115128802,"number":1604,"title":"load app, then ... if the data needs it ... load the googlemapApi at a later time, on demand. ","user":{"login":"webnerdlw","id":1829098,"avatar_url":"https://avatars.githubusercontent.com/u/1829098?v=3","gravatar_id":"","url":"https://api.github.com/users/webnerdlw","html_url":"https://github.com/webnerdlw","followers_url":"https://api.github.com/users/webnerdlw/followers","following_url":"https://api.github.com/users/webnerdlw/following{/other_user}","gists_url":"https://api.github.com/users/webnerdlw/gists{/gist_id}","starred_url":"https://api.github.com/users/webnerdlw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webnerdlw/subscriptions","organizations_url":"https://api.github.com/users/webnerdlw/orgs","repos_url":"https://api.github.com/users/webnerdlw/repos","events_url":"https://api.github.com/users/webnerdlw/events{/privacy}","received_events_url":"https://api.github.com/users/webnerdlw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T19:27:34Z","updated_at":"2015-12-18T21:10:47Z","closed_at":"2015-12-18T21:10:47Z","body":"Lazy loading of angular-google-maps with: key, version, libraries configuration info being passed in. Are there any examples anywhere of this?\r\nI need to be able to lazy load the angular-google-maps api based upon program logic when a particular template is used. I don't want to load it when the app loads, because of the usage limits/costs associated with google maps licensing ... only when I need it. Does anyone know of a way to do this? I seem to be hung up on passing in the key, version, and libraries config info at lazy load time.\r\n\r\nnmccready Oct 01 21:45\r\nIt is right here for lazy loading http://angular-ui.github.io/angular-google-maps/#!/api/GoogleMapApi it is lazy loaded by default, you just need to set the options.\r\n\r\nwebnerdlw Oct 02 10:37\r\nHi Nick. I want to load my app and then ... if the data needs it ... load the googlemapApi at a later time, on demand. I may not be understanding this completely, but because this setup is part of the app config, it loads immediately whether or not I need it. I want to avoid that because I want to reduce my usage/count with GoogleMaps. How can I do that?\r\n\r\nnmccready Oct 22 23:45\r\n@webnerdlw thats a good question and currently the way it is the main map directive needs google maps to be loaded. Anyway I would need to think about it some; but it is a good idea. Make an issue please.\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/comments/165898513","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1604#issuecomment-165898513","issue_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1604","id":165898513,"user":{"login":"webnerdlw","id":1829098,"avatar_url":"https://avatars.githubusercontent.com/u/1829098?v=3","gravatar_id":"","url":"https://api.github.com/users/webnerdlw","html_url":"https://github.com/webnerdlw","followers_url":"https://api.github.com/users/webnerdlw/followers","following_url":"https://api.github.com/users/webnerdlw/following{/other_user}","gists_url":"https://api.github.com/users/webnerdlw/gists{/gist_id}","starred_url":"https://api.github.com/users/webnerdlw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webnerdlw/subscriptions","organizations_url":"https://api.github.com/users/webnerdlw/orgs","repos_url":"https://api.github.com/users/webnerdlw/repos","events_url":"https://api.github.com/users/webnerdlw/events{/privacy}","received_events_url":"https://api.github.com/users/webnerdlw/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T21:10:47Z","updated_at":"2015-12-18T21:10:47Z","body":"#1630's fix resolved this issue for me also.  Closing"}}