Skip to main content.

CGGoogleMaps 1.4.1


CGGoogleMaps v1.4.1 for #cmsms is released with some important bug fixes.
Category: Modules

A client came to me yesterday and informed me of a very important issue he found with respect to the CGGoogleMaps module.  Aparrently with IE7 and in some cases IE8, dynamic maps were not being generated properly due to the fact that IE was attempting to execute the javascript while the page was still loading.

After about an hours worth of research, I realized that this was a common problem with GoogleMaps no matter which method you used to implement them, wether you were using CMSMS or not.  I have been wondering why I haven't heard a report about it till now.

The solutions were pretty simple actually, but I covered the bases two ways.

  1. I changed the google maps api version requested from 2 to 2.118 (I found this in another forum, and it seemed to solve the problem right off the bat).
  2. Just for safety sake I added an optional defer parameter (an integer) to the tag.  If it is set, then the defer="defer" attribute will be added to each google map script tag, forcing IE to not execute the javascript until after the page has loaded.
This seemed to solve the problem, and the customer is happy again, so I thought I'd throw the new release out there for everybody to take advantage of.
Thanks: 

Many thanks to pat at matterhorn marketing for finding this, doing the initial research and allowing me to identify the problem quickly.

And many thanks to the_babe for taking part of the tedious tasks of doing the releases off my hands.