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-works in Firefox > > but not IEhttp://bicycle.fredweaver.biz/codmap.html-works in 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.
