Someone else chipping in...

On Nov 2, 4:31 pm, Jeff <[email protected]> wrote:
> But I'm missing something in how I'm trying to reference the array
> entry in a line like:
>
>     points: polylineZ[ i ],
>     levels:  polylevelZ[ i ],

That should work, provided that polylineZ[i] contains a valid string
of points. This:
var polylevelZ = new Array(
  '"BBBBBB"',
  '"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"',
  '"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"'
  );
doesn't. You delimit your strings with the single quotes, and they
contain the double-quotes. So those strings contain invalid characters
at the beginning and end.

The points strings contain backslashes. That means that the two
characters (say) \M don't actually mean two separate characters. \M
means character 13 (Carriage-return). To make the backslash mean a
backslash, you need to escape it, so \\M would mean a literal
backslash followed by M.

You need to look up Mark McClure's documentation for encoding. A
levels string of all Bs isn't very useful.
http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/

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