ui-map icon indicating copy to clipboard operation
ui-map copied to clipboard

google is not defined

Open Surender246 opened this issue 11 years ago • 4 comments

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.

maperror

help me to solve this problem thanks in advance

Surender246 avatar May 28 '14 13:05 Surender246

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

ProLoser avatar May 28 '14 19:05 ProLoser

how to resolve this problem i mean how to make maps library loading

Surender246 avatar May 29 '14 06:05 Surender246

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>

scmorrison avatar May 30 '14 05:05 scmorrison

https://stackoverflow.com/questions/47198904/angular-google-is-not-defined

dgoyal2 avatar Sep 10 '18 02:09 dgoyal2