Google Map Resize Issue with Version 3

Dhepthi L Narasimhan

30 sec read

Recently, I came across problem where the Google map was not resizing itself to its container when I select a new location or load the page for some events.

In IE browsers, it is showing an error as “Invalid Error in main.js” as shown in the first screenshot whereas in other browsers map loads partially as shown in the second screenshot.
Screenshot – I (IE error with Google map)

Screenshot – II (Partial map load error)

I was thinking it could be related to my Javascript/CSS issue but later figured out that I have to simply use the latest version of Google Map API V3.3.
That would look like..
[source language=”javascript”]