IE 8 Failed main.js http://maps.gstatic.com/intl/en_us/mapfiles/api-3/4/4a/main.js

1,410 views
Skip to first unread message

Karen Ryberg

unread,
Mar 9, 2011, 12:25:16 PM3/9/11
to Google Maps JavaScript API v3
I have a page here http://nd.water.usgs.gov/floodtracking/index2.html
that works in FireFox, Safari, and Chrome. However it does not work
in IE 8. There are no errors in the FireFox error console, the HTML
and CSS validate.

When I open the page in IE, sometimes the zoom and scale controls are
there, sometimes they are not. The map always appears, centered
properly, with the markers. Sometimes I can pan, rarely the markers
are clickable, most of the time not.

The first error on the page I get is

'lat' is null or not an object
index2.html Line:69

I have two sets of marker on the map, this error refers to the second
set in the file http://nd.water.usgs.gov/floodtracking/charts/markersf.js
which looks like this

var markersf = [
{ num: "05113750", nom: "EAST BRANCH SHORT CREEK RES NR COLUMBUS, ND",
lat: 48.99058800, lng: -102.78573030 },
{ num: "05116000", nom: "SOURIS RIVER NR FOXHOLM, ND", lat:
48.37223570, lng: -101.50544140 }
];

The lat is not missing for either entry and both markers show up on
the map in IE and other browsers, so it is being read. Also, I have
no comma after the final element (several days ago I read this could
be a problem with IE). It's in the same format at as the other
markers.js file which is not causing problems.

If I then click on a marker in IE i get the error message

Failed
main.js Line:8
Code: 0 Char:118
URI:http://maps.gstatic.com/intl/en_us/mapfiles/api-3/4/4a/main.js

Suggestions would be appreciated.

Thank you.

Karen Ryberg

unread,
Mar 9, 2011, 2:06:24 PM3/9/11
to Google Maps JavaScript API v3
I fixed the
'lat' is null or not an object
index2.html  Line:69

problem.  Typo that FF, Chrome, and others could handle but IE could not.  Does not affect the Failed main.js problem though.

geoco...@gmail.com

unread,
Mar 9, 2011, 2:34:06 PM3/9/11
to Google Maps JavaScript API v3
On Mar 9, 11:06 am, Karen Ryberg <ryberg...@gmail.com> wrote:
> I fixed the
> 'lat' is null or not an object
> index2.html  Line:69
>
> problem.  Typo that FF, Chrome, and others could handle but IE could not.
> Does not affect the Failed main.js problem though.

Why are you calling out the "nightly" development version (3.4)?

v3.3 seems to work. I suspect this is a bug in the development
release (there was just a major change to markers). I think you have
2 options:
1. use 3.3 and file a bug report
or
2. use the MarkerImage for your markers, I think I have seen post that
imply that fixes this problem.

-- Larry



>
>
>
> On Wed, Mar 9, 2011 at 11:25 AM, Karen Ryberg <ryberg...@gmail.com> wrote:
> > I have a page herehttp://nd.water.usgs.gov/floodtracking/index2.html
> > that works in FireFox, Safari, and Chrome.  However it does not work
> > in IE 8.  There are no errors in the FireFox error console, the HTML
> > and CSS validate.
>
> > When I open the page in IE, sometimes the zoom and scale controls are
> > there, sometimes they are not.  The map always appears, centered
> > properly, with the markers.  Sometimes I can pan, rarely the markers
> > are clickable, most of the time not.
>
> > The first error on the page I get is
>
> > 'lat' is null or not an object
> > index2.html  Line:69
>
> > I have two sets of marker on the map, this error refers to the second
> > set in the filehttp://nd.water.usgs.gov/floodtracking/charts/markersf.js
> > which looks like this
>
> > var markersf = [
> > { num: "05113750", nom: "EAST BRANCH SHORT CREEK RES NR COLUMBUS, ND",
> > lat: 48.99058800, lng: -102.78573030 },
> > { num: "05116000", nom: "SOURIS RIVER NR FOXHOLM, ND", lat:
> > 48.37223570, lng: -101.50544140 }
> > ];
>
> > The lat is not missing for either entry and both markers show up on
> > the map in IE and other browsers, so it is being read.  Also, I have
> > no comma after the final element (several days ago I read this could
> > be a problem with IE).  It's in the same format at as the other
> > markers.js file which is not causing problems.
>
> > If I then click on a marker in IE i get the error message
>
> > Failed
> > main.js   Line:8
> > Code: 0  Char:118
> > URI:http://maps.gstatic.com/intl/en_us/mapfiles/api-3/4/4a/main.js
>
> > Suggestions would be appreciated.
>
> > Thank you.- Hide quoted text -
>
> - Show quoted text -

Karen Ryberg

unread,
Mar 9, 2011, 2:52:57 PM3/9/11
to Google Maps JavaScript API v3
I'm using the 3.4 version because this page
http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning
said "When developing a new Maps API v3 application, we recommend that
you select the latest Nightly version by its version number (eg. 3.4),
and then continue to use that version until such time as you need to
add additional features available in a later version. In this way the
version you are using will mature as your application develops, moving
to be the Release and then Frozen version over time."

However, changing to 3.3 solved the problem.

Thank you very much!

On Mar 9, 1:34 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages