javascript - Google maps api async loading - have tried all the solutions - going insane -


i'm trying desperately finish project

http://kenziejoy.github.io/frontend-nanodegree-map/

(that gh-pages branch, master little behind)

and while tinkering other things map disappeared...forever. can't find wrong. feel i've tried everything: async, defer, async defer, callback function in html calls function in js file (someone suggested it), initmap inside viewmodel, outside viewmodel, wrapped in self running function.

most of errors either, callback isn't function, google isn't defined or in js file isn't defined.

i've poured through make sure isn't silly misplaced comma - i'm getting frustrated i've made stupid mistake somewhere. appreciated. @ least can map there , make progress on else.

looking @ code in link in app function in main.js not declared googlemap var globally.

you must declare

var googlemap ; 

in top of main.js


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -