> and all the code works until I call map.centerAndZoom(...).

Might be worth looking at the parameters given to it then?
   map.centerAndZoom(new GPoint(zoomlon,zoomlat),zoomlevel);

GPoint was deprecated for use with lat/lng some years ago, it may be
that the legacy code to support it has only recently been removed from
the v.2 API
http://code.google.com/apis/maps/documentation/reference.html#GPoint

I thought I'd seen a similar problem and solution described before,
but can't find it now.
Substitute GLatLng() but beware the lat and long are the other way
round.
http://code.google.com/apis/maps/documentation/reference.html#GLatLng

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to