Wednesday, September 18, 2024

Google Maps API Version 2 Officially Released

Today via the Google Maps weblog (Bret Taylor, Product Manager) word of Veresion 2 of the API was announced. From the Blog…

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!

Check out the Version 2 documentation for a detailed usage guide.

See Also Version 2 Documentation & Get the API here – http://www.google.com/apis/maps/

Anything Geospatial: Tracking developments affecting GIS, geospatial technologies, location-based services, mapping, google earth and google maps. Published by the creator and editor of GISuser.com & LBSzone.com

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

These routine tasks can help prevent issues that could lead to the running water sound.