On Nov 4, 12:27 am, Chris Broadfoot <c...@google.com> wrote:
> http://code.google.com/apis/maps/documentation/javascript/reference.h...
>
> Did you try setting optimizeWaypoints:true ?

That is not what he wants (at least per his original post):
"Google choose the best route even though I have turned off the Route
Optimization."

He wants the order the waypoints are selected by the user.

But I could be wrong...

  -- Larry

>
> On Thu, Nov 4, 2010 at 1:10 PM, geocode...@gmail.com
> <geocode...@gmail.com>wrote:
>
>
>
>
>
>
>
> > On Nov 3, 6:33 pm, Kevin Davis <ke...@kevincdavis.net> wrote:
> > > Understood..   I do have one more question, in regular google map
> > waypoints,
> > > there is a way to change the order by dragging the marker say for example
> > > a,b,c,d,e and f and switch c with d.. Is that possible with API???
>
> > That sounds like a user interface question, which is not defined by
> > the API.  I have no idea how you would implement something like that
> > though.  The most common interface I have seen for reordering
> > waypoints is the one that I have seen in Google Maps, where you can
> > swap any two waypoints in a list, but not by dragging on a map.
>
> > I guess I could see putting a selector in an infowindow on a marker to
> > allow adding an order to them.
> > (click on marker A and change it to be marker E or whatever the next
> > time directions are requested)
> > I just don't understand how by dragging the markers you could change
> > the order...
>
> > I implemented something for the v2 directions service where I geocoded
> > the entered address and if multiple results were returned, you could
> > click on one to make it the "active" result.
>
> >  -- Larry
>
> > > Thanks!
>
> > > On Wed, Nov 3, 2010 at 6:44 PM, geocode...@gmail.com
> > > <geocode...@gmail.com>wrote:
>
> > > > On Nov 3, 3:48 pm, Kevin Davis <ke...@kevincdavis.net> wrote:
> > > > > Hi Larry,
>
> > > > > I did pass them in the order based upon in what I told you..  It
> > seems
> > > > the
> > > > > array is picking up the address based upon the order in the listbox
> > and
> > > > what
> > > > > I have chosen..
>
> > > > Maybe I don't understand you but I clicked on the bottom entry in the
> > > > list box first, then on the second.  This is the order that appears in
> > > > the waypts array you are sending to the directions service:
> > > > Plato Center, IL
> > > > Dekalb, IL
>
> > > > Your code that generates the waypoints array goes through the dropdown
> > > > in list order, not in order selected.  If you want it to do that you
> > > > _have_ to write code to capture the order the waypoints are selected
> > > > in.  And again, that is not a maps API issue, but a DHTML/javascript
> > > > issue.
>
> > > >  -- Larry
>
> > > > > Kevin
>
> > > > > On Wed, Nov 3, 2010 at 4:18 PM, geocode...@gmail.com
> > > > > <geocode...@gmail.com>wrote:
>
> > > > > > On Nov 3, 1:22 pm, Kevin Davis <ke...@kevincdavis.net> wrote:
> > > > > > > Hi there,
>
> > > > > > > Based on the link below:
>
> > > > > > >http://kevincdavis.net/map_temp.php
>
> > > > > > > there is a map with waypoints, what I would like to do is show
> > the
> > > > > > > directions based on the items I select in the list box. For
> > example I
> > > > > > > would choose the 3rd location, then the 1st location, and the 4th
> > > > > > > location in that order I have described. However, Google choose
> > the
> > > > > > > best route even though I have turned off the Route Optimization.
>
> > > > > > Google does them in the order you pass them in in the call.  Have
> > you
> > > > > > made sure that you change the order of the waypoints you send in
> > the
> > > > > > request based on the order of selection?  That part doesn't have
> > > > > > anything to do with the maps API.
>
> > > > > >  -- Larry
>
> > > > > > > I just need some advise if that can be done or not..
>
> > > > > > > Thanks!
>
> > > > > > --
> > > > > > 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
> > > > > > google-maps-js-api...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2B
> > > > > >  unsubscr...@googlegroups.com>
> > <google-maps-js-api-v3%2b­unsubscr...@googlegroups.com>
> > > > <google-maps-js-api-v3%2b­unsubscr...@googlegroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.-Hide
> > > > quoted text -
>
> > > > > - Show quoted text -
>
> > > > --
> > > > 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
> > > > google-maps-js-api...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2B
> > > >  unsubscr...@googlegroups.com>
> > <google-maps-js-api-v3%2b­unsubscr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.-Hide
> > quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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
> > google-maps-js-api...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2B 
> > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to