Andrew - thank you! My mistake was in confusing the array string declaration as you noted - didn't need to be enclosed in quotes. I removed the escaped quotes and now see multiple polylines displayed.
Thanks to all (and especially to the original responder John who had tried to gently guide me down the right path based on missing the escaped backslashes in the points). And yes, the references you guys provided were very helpful beyond the original documentation. I appreciate it, Jeff On Nov 2, 11:30 am, Andrew Leach <[email protected]> wrote: > On Nov 2, 5:16 pm, Jeff <[email protected]> wrote: > > > OK, those last two replies turned some lightbulbs on, thanks. > > Following is the code I now have with escaped quotes and double- > > escaped backslashes in the encoded polylines. Unfortunately, I see > > only the markers, but none of the polylines displayed by the browser > > (Firefox). > > Why do you have escaped quotes in the strings? The strings of > characters must not contain quotes, only valid characters. > > To get a Javascript string containing the characters ABCDEFG, you put > that in quotes, either single or double. These are equivalent, and > contain strings of seven characters: > var mystring= "ABCDEFG"; > var mystring= 'ABCDEFG'; > > That is not the same as these, which are also equivalent: > var mystring="'ABCDFEG'" > var mystring="\'ABCDEFG\'" > because in these statements, the strings really contain the quote > characters. The strings are nine characters long. > > Regarding the levels string, Google's example page, encoding function > and documentation are (ahem) sub-standard. Prof McClure's is far > better and produces results which do the job that encoding is intended > to do. > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
