On Oct 1, 12:26 pm, Homer <[email protected]> wrote: > I added quotes around the values and it now seems to work... > > map.setCenter(new GLatLng("-33.922461", "18.416619"), 9, > G_NORMAL_MAP);
No, no! GLatLng() takes Numbers, not Strings. Things tend to fail in unexpected ways if you supply strings. If you really do need to use strings, you also need parseFloat(). 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 -~----------~----~----~----~------~----~------~--~---
