Google Maps API Tutorial© 2007, 2008, 2009 Mike Williams |
Translate this page: |
Custom direction detailsGDirections.load() doesn't give you much control over the layout of the directions information. If you want to have the directions displayed slightly differently, you have to read through the GRoutes and GSteps and build up the whole thing yourself.Here's a page where I've already done that to produce a display that looks almost exactly like that produced by GDirections, but since it's all done in exposed Javascript, you can take a copy and customise the code to make it look the way that you want it to. The parameters of my "customPanel()" function are:
Potential Pitfalls
Up to the start of this tutorial |