On Jun 10, 7:49 am, label <[email protected]> wrote:
> On Jun 10, 9:17 am, Andrew Leach <[email protected]>
> wrote:
>
> > On Jun 10, 1:57 pm, label <[email protected]> wrote:
>
> > >http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/
>
> > > Thanks, I've seen that already and all it seems to do is create a
> > > polyline from encoded data.
> > > What I want is the other way around : to get an encoded string from a
> > > polyline.
>
> > Under the heading "Encoding utilities" there are four links, the
> > bottom one of which takes an array of GLatLng() points and produces an
> > encoded string.
>
> > Whatever you do, don't use Google's utility as that gets the Levels
> > string wrong and reduces the effectiveness of the encoding.
>
> > Andrew
>
> Maybe I'm missing something but all I see is functions that return
> GPolyline objects...

I re-read your post.  It looks like you are looking for a way to
encode a polyline that has been edited.   I don't think you are going
to find a cut and paste solution for that.  You need to get the new
locations of the vertices out of the polyline, then run them through
the encoder function.  I've got a couple of the pieces in various
places, but not put together that way.

  -- Larry

>
> return new GPolyline.fromEncoded(this.dpEncodeToJSON(points, color,
> weight, opacity));- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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