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
-~----------~----~----~----~------~----~------~--~---

Reply via email to