I am trying to load a google map with some specific parmeters. I understand the problem is most likely that the initMap function needs to be declared globally. However, I h
Found it... Though very late to the party...
If you downloaded the google maps js code from this link https://maps.googleapis.com/maps/api/js and then tried calling it using
There is bug in the development tools that the code gets modified.
Find the initMap in the downloaded file and replace whole file with ""
Or replace with a fresh copy form the above link and then lock the file or mark it as ReadOnly to avoid the same in future.