Hello - Thank you for helping.
The array of encoded polylines doesn't really need to have a backslash
in it, right?
My original thought was to have each polyline as an array entry along
with " " which - for the first responder's suggestion, I believe I now
have by adding ' " ... " '; around each encoded polyline entry.
If that is correct (and I don't have nor need backslashes), then I'm
stumped on the function call.
The encoded polyline API requires the parameter to be in a string in
quotes (I'm pretty sure I'm not telling you something you don't
already know! Please forgive me as I'm trying to set-up the question):
var encodedPolyline = new GPolyline.fromEncoded ({
...
points: "iygwDrnmvQxzCldE|r...@fcrqc~le`_cnycxmvff",
levels: "BBBBBB",
zoomFactor ...
});
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 ],
I'm concerned I'm missing a more fundamental point in the suggestions
for double-escapes.
Jeff
On Nov 2, 10:18 am, Marcelo <[email protected]> wrote:
> On Nov 2, 3:44 pm, Jeff <[email protected]> wrote:
>
> > If this is what you mean, I tried substituting ' " ... " ' for
> > "\" ... \""; in the array entries but that didn't work;
>
> No. Backslashes are escape characters, and therefore they need to be
> escaped themselves, so that they function as a regular character, and
> not as an escape character.
> So, '\' needs to become '\\', and
>
> mE~Ls\?zLpV
>
> needs to become
> mE~Ls\\?zLpV
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> > no spaces
> > between single and double quote - I just typed in this response for
> > clarity.
>
> > I'm googling for explanations on why double escaping would work. The
> > original quote did correctly show the "..." in the encoded poly when I
> > printed it out to the screen, so the quotes are being concatenated to
> > the string in the array entry.
>
> > Thanks for your reply
>
> > Jeff
>
> > On Nov 2, 8:27 am, "maps.huge.info [Maps API Guru]" <[email protected]>
> > wrote:
>
> > > Have you tried double escaping your backslashes? (\\)
>
> > > Have you tried using a combination of single and double quotes instead
> > > of escaping your quotes?
>
> > > -John Coryat
>
> > >http://maps.huge.info
>
> > >http://www.usnaviguide.com
>
> > >http://www.zipmaps.net
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---