On Sep 5, 4:57 pm, daniel <[EMAIL PROTECTED]> wrote: > Hello, > > I am having some difficulty getting polylines to display when a > checkbox is checked. > > Using this tutorial:http://econym.googlepages.com/basic7.htm > > What I am trying to do is take the data from the xml, build the > polyline an store that in an array (not sure if that part is needed). > There will be anywhere from 8 - 12 routes. > > Using another of Mikes tutorials, I had created a function to "build" > the polyline then store it in an array. (I am unsure about passing > the pts[] that holds the lat/long points). > > I saw this:http://www.geocodezip.com/samicbc_simple4d.asp > > and I saw all the new GPoints and I am wondering if I need to do > something like that instead.
No, that is the way the original coder wrote it. Feel free to make it better... > > Here is a link to my map.http://dajohnson1s.dvrdns.org You are having issues with the British vs. American spelling of color/ colour Error: 'color' is undefined. (should be colour) Error: 'weight' is undefined. (not needed, I hardcoded it to 10) Error: 'polys' is undefined. (define polys = []; at the top) Then you get a green polyline (all the time...). I don't see a call to showPoly, was it supposed to be called by the "Green Line" check box? I suggest you either turn on error reporting in IE Use the Error Console in Firefox or use the Error Console in Opera or use another debugger, these types of errors should be easy to fix. See the troubleshooting sections of the documentation and Mike Williams' tutorial. -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
