Google Recommends Upgrade to API v2
Tuesday, July 25, 2006 (03:36:31)

Posted by Paul Rimmer

Google Maps API version 2 has been out for a couple of months now so its probably time to upgrade. They say v1 and v2 will co-exist for a "while": "Version 1 and Version 2 will coexist for at least a month no matter how few bugs are reported, and we may preserve Version 1 of the API for longer if people report many or complex transition problems". Based on this I'm going to get DF Maps upgraded ASAP.

Check out Google's own upgrade guide from API v1 to v2.

Version 2 Features

Version 2 cleans up much of the API and improves performance and stability in fundamental ways based on the feedback of many API sites. It also includes a number of frequently-requested features, including:

* Much smaller JavaScript download. The new Maps API JavaScript file is about half the size of the old JavaScript file, which should improve user experience on your web site.
* Two additional satellite zoom levels. Increased imagery resolution and coverage in the U.S., Canada, U.K., Japan, Europe, and almost every major city in the world.
* Overview map. Our new GOverviewMapControl control displays an attractive and collapsible map in the corner of the screen.
* Extensibility and a new GMap2 class. The GMap2 interface has been redesigned to allow API users to extend it. We now have documented ways of creating custom map controls, custom overlays, and even custom map types.
* Fewer memory leaks. The API now includes a GUnload method that you can call in the unload event of your page to destroy most circular references, including those formed implicitly during event registration. On Google Maps, this has virtually eliminated memory leaks in IE.
* Debugging log. A simple, floating debug window used internally by the Google Maps engineering team allows you to print debug information easily without blocking program execution or interfering with the UI. Just replace your alert() calls with GLog.write().
* Last but not least, a GLatLng class that is distinct from GPoint. You no longer need to reverse your latitude and longitude to construct a geographic point!

Content received from: Ronin Technologies, http://ronin-tech.com