Google Map Resize Issue with Version 3

February 27, 2011

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..

<script 
  src="http://maps.google.com/maps/api/js?sensor=false&.js&v=3.3&key=<>"
  type="text/javascript">
</script>

I learned that its important to subscribe my email id to Google map so that I get updates from them about the new releases and features.

pixelstats trackingpixel

1 Comment. Leave new

Andreas Korth
August 19, 2011 6:06 PM

Thank you, dude. YMMD!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>