On 25 Feb., 10:29, "Andrew Leach (Maps API Guru)" <[email protected]> wrote: > On Feb 25, 8:56 am, MatthiasG <[email protected]> wrote: > > > I tried the map.setUIToDefault() method according > > tohttp://googlegeodevelopers.blogspot.com/2009/02/posted-by-jez-fletche..., > > but I get the error "setUIToDefault is not a function". Do I need to > > use a specific API version for this to work? > > Looks like it, according to the > documentation.http://code.google.com/apis/maps/documentation/reference.html#GMapUIO... > > I'm rather surprised that the docs have been updated before the API is > officially released: that's probably a first (and rather welcome!) But > it would probably have been better to mention a minimum version number > in the blog post.
Yes indeed, that would have been helpful. I found the solution: When I specify the version as v=2.x, the function is available. Documented here: http://code.google.com/intl/en/apis/maps/documentation/#API_Updates "The v parameter within the http://maps.google.com/maps?file=api&v=2 URL refers to the version number of the Google Maps API to use. Most users of the API will want to use the current "Version 2" API by passing the v=2 parameter within that URL. You may instead obtain the latest release (including the latest features) by passing v=2.x instead. However, be aware that the latest release may not be as reliable as the v=2 release. " Matthias --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
