It was the div id="map" AND a variable map. Changed the id to "map_canvas" and it worked. I had to keep the javascript map variable global so I could use it in another function. The map displays 8 different KML files, one a time depending on user interaction.
Thanks On Dec 5, 11:48 am, "[email protected]" <[email protected]> wrote: > On Dec 5, 10:59 am, "[email protected]" <[email protected]> > wrote: > > > > > > > > > > > On Dec 5, 10:52 am, Fred Weaver <[email protected]> wrote: > > > > This is puzzling. I'm toggling between KML files and IE is giving me > > > fits.http://bicycle.fredweaver.biz/index.html - works fine in > > > bothhttp://bicycle.fredweaver.biz/scpd_cyclists.html-worksin Firefox > > > but not IEhttp://bicycle.fredweaver.biz/codmap.html-worksin Firefox but > > > not > > > IE > > > > The IE error windows displays: Object doesn't support this property or > > > method and refers to the line in the code > > > > map = new google.maps.Map(document.getElementById("map"), > > > myOptions); > > > If you don't declare variables in IE, they can conflict with the ones > > it helpfully creates to give you access to HTML Elements by id. > > > Try declaring your map variable somewhere with the var keyword ("var > > map...") > > Another option would be to change this to have a different id (that > doesn't conflict with your javascript global variables): > <div id="map"></div> > and change the line above to use the new id. > > -- Larry > > > > > > > > > > > -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
