I'm surprised a browser can even load that page. Try running it through a validator first to fix up your html - http://validator.w3.org/check?uri=http%3A%2F%2Fangile.ca%2Ftest_sql.php&charset=%28detect+automatically%29&doctype=Inline&group=0
But the main problem is that you're not waiting for the page to finish loading which can cause errors in IE8 because of the VML namespace which is used to draw Polylines. You need to add an event listener to the window 'load' event or by adding a function to the body onload attribute. If you look at the source of http://code.google.com/apis/maps/documentation/javascript/examples/map-simple.htmlyou can see a simple example that adds a function to the body onload. Hope this helps. -- Luke On Thu, Jul 14, 2011 at 8:55 AM, Angile <[email protected]> wrote: > I have the same issue using Polyline. Markers do appear but Polyline > don't. After a refresh (F5) the error is gone. > > The issue appear on first load of the page and disapear after a page > refresh. (Unexpected error, line 34 carr 595 in main.js) > > I also have this issue on other type of maps. Is it IE8 or API V3? > > link: > http://angile.ca/test_sql.php > > > On 7 juil, 20:40, Luke Mahé <[email protected]> wrote: > > If you guys don't include a link then we can't help you. > > > > And I wouldn't recommend taking a copy of main.js as you will most > probably > > run into more problems. > > > > -- Luke > > > > > > > > On Fri, Jul 8, 2011 at 3:43 AM, Sam Doyle <[email protected]> wrote: > > > Surely that'll essentially mean two loads of main.js causing errors > > > > > ______________ > > > Sam Doyle > > > @sam_doyle > > > > > On 7 Jul 2011, at 16:57, Dianne van Dulken <[email protected]> wrote: > > > > > I had something very similar with IE8. > > > > > I think it was the order that the dom was reading things. > > > > > Try, as a temp measure, copying main.js and including it in your local > js > > > file that you are using to call the map. > > > > > -- > > > 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. > > > > > -- > > > 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.- Masquer le > texte des messages précédents - > > > > - Afficher le texte des messages précédents - > > -- > 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. > > -- 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.
