Hi Andrew thxs for pointing out that i forgot to setCenter in the beginning. The map didn't load up as expected is because there are no results found from the DB.
Cheers Reynard On Wed, Jun 9, 2010 at 2:34 PM, Andrew Leach <[email protected]>wrote: > On 9 June 2010 04:45, Reynard <[email protected]> wrote: > > Hi all > > > > i'm using googlemaps for my webpages, previously it was working > > perfectly fine. However recently i noticed the map doesn't load at all > > and only shows a grey background. > > > > My URL is: http://www.tutorme.sg/mainmap.php > > Nothing to do with Version 2 - 3 change. Version 2 is still working, > and you haven't started to use Version 3. > > You commented out your setCenter() line, so the map isn't centred > straightaway; and currently your PHP script which generates marker > data is returning no markers at all. So the map is never centred, and > that means it's never told what to show. > > You may need to test for zero markers and centre the map somewhere. > > -- > 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]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- 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.
