In some API versions there may be a bug with the handling of map
options. If you use any {options} when you create your GMap then the
list of map types attached to the map ends up being void. If you then
attempt to centre the map using the default map type, the API fails with
g undefined.
var map = new GMap(document.getElementById("map"),{foo:"bar"});
map.setCenter(new GLatLng(44.,-79),9);
I've not got round to checking if there's an Issue for this yet. The
issue currently affects all accessible API versions.
One workround is to specify the map type in the setCenter command.
--
Mike Williams
--
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.