Pamela, thanks again for your suggestion. Now that I've had a closer
look at the code I remember trying to adapt that example last week,
but it seemed the elements I needed (onMarkersSetCallback, resultList)
were specific to the Google Bar, and I won't be using a Google Bar on
my map. I did take my getDirections function from that example, but
wasn't able to figure out how to adapt the rest of it.

My map is working, after a fashion... I guess I'll just keep tinkering
with the code and see if I can hit on a way to get my sidebar to
display in the correct order.

Thanks anyway,
Chuck

On Sep 4, 1:07 pm, "pamela (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> Hi Charles-
>
> Here's an example of using GDirections to create a list of results
> plus their distances, it's a small amount of code and may be helpful
> for 
> you:http://gmaps-samples.googlecode.com/svn/trunk/googlebar/googlebar_dir...
>
> It just uses function closure and its own GDirections instance per
> call to keep track of what result is for what query.
>
> - pamela
>
> On Sep 3, 3:48 pm, charlesmayo53 <[EMAIL PROTECTED]> wrote:
>
> > Hi all, hoping I can get a bit of help with a store locator map. I've
> > pretty much taken bits of demo code from the Google site and managed
> > to cobble together a map which does nearly everything I need it to do,
> > with the exception that I need to displaydrivingdistances from the
> > map center in the sidebar and markers instead of straight-line
> > distances.
>
> > I've experimented with GDirections() and have successfully extracted
> > thedrivingdistances in other versions of the map, but keep getting
> > tripped up in the asynchronous nature of the API -- the GDirections
> > methods don't come back in the correct A,B,C order  (I'm using
> > lettered markers and sidebar entries) and visually checking the
> > returned entries, the sidebar wouldn't be sorted in nearest-to-
> > farthest order even if they were in A,B,C order.
>
> > My map is at:
>
> >http://tandem.mayodata.com/tdom/phpsqlsearch_map_old.php?jobsite=704
>
> > Could someone suggest a way to implement the features I need, i.e.
> >drivingdistances instead of straight-line, a properly A,B,C ordered
> > sidebar in nearest to farthest order?
--~--~---------~--~----~------------~-------~--~----~
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