Thanks, many options, indeed. Lets see, how it goes.
Regards
Mike Williams schrieb:
> You could put the directions map into a custom GControl or custom
> GOverlay, that way you don't have to worry about openInfoWindow being
> asynchronous. The div in your custom code will always be there. Don't
> remove it when you've finished with it, just hide it, so that the div
> continues to be accessible.
>
> Or you could place a second map outside your main map.
>
> Or you could do it the hard way and handle the asynchronous behaviour of
> the info window. Since the div won't exist at the time that you create
> the GDirections, you'll need to use new GDirections(null), wait for the
> "load" event and obtain the route with .getPolyline. Then open an info
> window containing a named div, wait for the info window open to complete
> (a setTimeout of 1ms is sufficient) create a map in the info window
> (remember to use the {size} option if you're putting anywhere other than
> the first tab) obtain the zoom info with gdir.getBounds() and zoom the
> map. Plot the polyline and any markers.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---