I suppose there is some sort of Google event going on this week and what do you know, we’ve got some GoogleGeo news:
Google Maps API v3 – The new Google Maps API v3 enables support on mobile browsers (such as Mobile Safari), dropping the need for keys (hurray!), now MVC-based architecture (about time), default UI automatically supported (so you never have to worry about updating the UI), cleaned up namespaces (everything is now google.maps.* rather than gmap). So what does this mean? Take a look at the old v2 example.
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
Google Maps JavaScript API Example
<a href="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false">http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
}
}
<body onload="initialize()" onunload="GUnload()">
<div style="width:500px;height:300px;" id="map_canvas">