On Nov 10, 11:13 pm, monoloco <[email protected]> wrote:
> I want to allow my users to map their own routes by clicking on a
> map.  I'm using a polyline and that is working fine.  To enable
> quicker input I want the user to be able to select a "follow road"
> checkbox to get the DirectionsRenderer to render from the current
> point to the next click they click on.  The only problem is that the
> DirectionsRenderer fills in a whole bunch of points that aren't
> included in the 'steps' array (to follow the road precisely).
>
> To allow my idea to work, I need to add the polyline I've created
> manually to the output from the DirectionsRenderer.  The only problem
> is that the 'steps' info is not actually the detailed polyline info so
> if I use the 'steps' array to add points to my own polyline, the line
> does not follow the road.  Also, I can't see how to change the options
> (line colour, width, opacity) of the line created by the
> DirectionsRenderer and to leave off the markers (I'll put my own on
> the map).
>
> Cheers,
> Monoloco

You will have to decode the "points" string:

    www.polyarc.us/routes

    www.polyarc.js/polyextract.js

You can ignore the zoom "levels" string.  It is useless junk left over
from V2.  It serves no purpose in V3.  Point reduction on clean polys
consumes more resources than it saves.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to