The link Rossko provided to Mike's example does emulate the display of the directions in the same style as that done by GDirections.load(). You might need to tweak things a bit since it seems that Google may have changed the styling slightly from when Mike wrote that example. For example, I found that I needed to remove the style attribute from the div tag in the copyright() function to get the copyright text to display the same size as it's displayed by GDirections.load().
On Sep 10, 11:46 am, StephenMattison <[email protected]> wrote: > The reason I want to use the GRoute is that I am already using the > map, displaying the same directions as google.com/maps would be nice > for UI consistency. > > On Sep 10, 11:15 am, Gregory Short <[email protected]> wrote: > > > I don't know, I could see some variant of this as being useful...for > > instance, perhaps you have a DB that can generate walking directions > > on a university or corporate campus. Use google-provided gdirections > > to get to the basic location, and your own generated directions to get > > to a specific location on-campus. It would be quite useful to use the > > same object for handling all the directions. There's no reason the > > code should know whether you're dealing with on- or off-campus > > directions. :) > > > -G > > > On Sep 10, 2009, at 1:08 PM, Rossko wrote: > > > >> As it stands I can overlay the route (PolyLine), but cannot create > > >> the > > >> GRoute text description. > > >> Given that I am not using GDirections.load() at all, how can I do > > >> this? > > > > Why would you want to? If you have directions text, just render > > > yourself it as you see fit. > > > > This may help if you want to experiment - > > >http://econym.org.uk/gmap/steps.htm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
