Cheers everyone, I've posted this as a Drupal 6.x version problem, but I get the same results in Drupal 5.x as well.

I have a custom module that uses GMap to display (less than 25) markers on a map of the continental USA. I've not specified a custom marker, so I get what I call the "red balloons" as markers.

In IE (I've tried 7 and 8) I can view the source code for the page and see all the data for the markers to be displayed, but only the map shows.

This is an internal web site, and everyone else in my company is having the same problem.

Here is how I'm displaying the information.
1. Copied the node.tpl.php page for the theme and renamed it node-map.tpl.php. Only content of type "map" uses the page.
2. Copied page.tpl.php and renamed it page-node-123.tpl.php (I stripped off unnecessary stuff like the sidebars).

In every browser except IE, it works fine. In IE, I get the following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Sat, 21 Nov 2009 01:04:41 UTC


Message: Invalid argument.
Line: 26
Char: 32
Code: 0
URI: http://maps.gstatic.com/intl/en_us/mapfiles/140g/maps2.api/main.js

It appears that IE is reporting that line 26 in the main.js file (part of the Google Maps API) is not a valid line of code.

Has anyone seen anything like this before?

Comments

mpruitt’s picture

Here is the line (26) from the above referenced file:

function pc(a,b){var c=a.style;c[$b]=b.getWidthString();c[Nb]=b.getHeightString()}

The offending character appears to be the ";" after "a.style".

vlooivlerke’s picture

Hi,

I have problem that sometimes my site goes very slow, and it is waiting for this url to load: http://maps.gstatic.com.....

I am in South Africa and has changed the gmap API call from maps.google.com, to maps.google.co.za (South Africa Beta version of maps)

Also changed the call in Geocoding ini files.

All works well, exept for thes call to url: http://maps.gstatic.com.....

It affects the whole page load, and I would loved to load the js file in the footer, so that the page would atleast load faster.

Sorry for my qlue-less-ness

mpruitt’s picture

We are using a custom marker to indicate the center of the search location. In the .ini file, we did not specify a marker shadow. Once we created one, added the name to the .ini file, and regenerated the markers info in the GMap module, it works fine!

stevieke’s picture

Hello Mark

I'm having the same problem as you did...
Can you maybe give me some example how you have fixed this?

mpruitt’s picture

I don't get to spend as much time on the site as I'd like to.

Below is the data at the very top of my ini file. In my case, I was using up to 9 different sets of markers, each in their own folder. I had forgotten to include the shadow name:

; Defaults
[defaults]
shadow = "fshadow.png"
anchorX = 10
anchorY = 29
infoX = 17
infoY = 3

I hope this helps you.

hoytman’s picture

I have also been having this problem. I tested Mark's solution and I found that the problem went away. Apparently, IE (and only IE) breaks down when the 'shadow' property within the .ini file is set to an empty string. To fix this problem, simply add a shadow image or comment out the property:

; Defaults
[defaults]
;shadow = ""
anchorX = 20
anchorY = 40
infoX = 24
infoY = 4