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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -