Issue
I am following this tutorial, basically copy all the code
https://developers.google.com/maps/documentation/javascript/tutorial
but got an error saying that the initMap function is not a function. I am using angularjs in my project, could that be causing problems?
I copied the same code into plunker and it works just fine... What are the possible issues?
Solution
turns out it has to do with ng-Route
and the order of loading script
wrote a directive and put the API script on top of everything works.
Answered By - user2901633
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.