ui-map
ui-map copied to clipboard
google is not defined
hi am using google maps in my application its working fine when i run it locally but when i run it on server its giving me the following error.
help me to solve this problem thanks in advance
Your maps library isn't loading
On Wed, May 28, 2014 at 6:23 AM, Surender Reddy [email protected] wrote:
hi am using google maps in my application its working fine when i run it locally but when i run it on server its giving me the following error. ReferenceError: google is not defined at http://malpani-ss-client.herokuapp.com/scripts/6587b441.scripts.js:3:15501 at http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:3922 at k (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:18269) at k (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:18269) at http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:18946 at k.$eval (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:24013) at k.$digest (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:22543) at k.$apply (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:24332) at f (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:4354) at r (http://malpani-ss-client.herokuapp.com/scripts/cf055713.vendor.js:5:6425) cf055713.vendor.js:5 help me to solve this problem
thanks in advance
Reply to this email directly or view it on GitHub: https://github.com/angular-ui/ui-map/issues/43
how to resolve this problem i mean how to make maps library loading
Double check to make sure that your Google Maps js is loaded after angular-ui-map:
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/angular-ui-utils/modules/event/event.js"></script>
<script type="text/javascript" src="bower_components/angular-ui-map/src/map.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=onGoogleReady"></script>
https://stackoverflow.com/questions/47198904/angular-google-is-not-defined