dylanfprice / angular-gm

AngularJS Google Maps Directives
MIT License
198 stars 47 forks source link

Load Google Maps Asynchronously #48

Closed Pierrebleroux closed 10 years ago

Pierrebleroux commented 10 years ago

Hi, it seems that loading the google maps blocks our Angular App even though the user is not looking to use the app. So I would like to know is it possible to asynchronously load the google map?

dylanfprice commented 10 years ago

AngularGM should load fine without google maps--but if you try to use it's directives it will expect google maps to be loaded. If you delay bootstrapping of your app until after google maps is loaded it should work.