On Nov 19, 8:33 am, Canam Group <canamgr...@gmail.com> wrote: > Larry, > Google Tutorials are very nice indeed, but they cover only the basics. > For example, their Polyline example only display one polyline (no loop). > I'm sure Mike Williams' tutorials in V3 would still be very useful... > but I can understand his decision.
I can as well. I have ported some of his examples to v3 as part of learning this version of the API and have posted them for others to see (they are not particularly pretty, but they do work). http://www.geocodezip.com -- Larry > > John, > Thanks for confirming my theory... and thanks for your example. > > Ben, > Thanks for confirming that I absolutely need to create a new array each > time for each polyline. > That's what I discovered in my tests. > I would appreciate if you could explain me this in more details: > "The issue is that Polyline takes a reference to your points array," > Could you give me some more details about how Polylines are added to a > map. > > I don't understand why it displayed one polyline the first time (many > polylines but the same one on top of each other) and If I reloaded the > polylines a second time (using AJAX), then it worked as expected. > > In V2, I didn't have to create a brand new array each time. Was it > because there were no reference between a Polyline and the array in > that release, but in V3, they are tied together? > > I know what to do to solve the problem, I'm just trying to understand > how all this works. > > Thanks everybody! -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.