On Sep 25, 12:49 pm, Jangla <[email protected]> wrote: > ...always returns zero for zoom, despite the fact that the markers are > in the UK and France only. Naturally, as the zoom is zero, the > setCentre doens't operate as required either. I've also tried > checkResize() before determining the zoom level and this has no effect > either. > > You can see my code running > here:http://www.holiday-chateau.com/index.php?id=10790 > > The map is on the second tab in and starts to load markers before you > activate the tab.
I can't get this to load in Firefox: the page is all over the place. However: it sounds like the map is hidden when you load the markers, so its size may well be taken as zero, which will upset the zoom calculation. The fix for this is to set the size in the new GMap2() call, which is in Ext.ux.GMapPanel.js -- are you in a position to alter this? Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
