How do I run the Gmap2 after the load is complete. I'm guessing this does have something to do with the splitter because it is a custom control. Right now I initialize my map like this GEvent.addDomListener(window, 'load', map_initialize); Isn't that running on the load complete?
On Oct 20, 9:48 am, Rossko <[email protected]> wrote: > The maps API provides a method checkResize(). This makes the API ask > the browser what size the div is, and act accodingly. > So all you have to do is trigger checkResize() after the div has got a > size, and upon any change. > > For the case of a map in a table, it usually suffices to run the GMap2 > after document load is complete. In your case, I suspect some other > part of your code is resizing the div - some 'splitter' thing. You > may be able to trigger the checkResize after that has done its thing, > or even defer GMap2 initialise until after. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
