W3school给的sample
<!DOCTYPE html>
<html>
<head>
<script src="XXXXXXXXXXXXXXXXXXXXXXXXXX/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&sensor=false">
</script>
<script>
function initialize()
{
var mapProp = {
center:new XXXXXXXXXXXXXXtLng(51.508742,-0.120850),
zoom:5,
mapTypeId:XXXXXXXXXXXXXXXXXXXXXXXXADMAP
};
var map=new XXXXXXXXXXXXXXp(XXXXXXXXXXXtElementById("googleMap")
,mapProp);
}
XXXXXXXXXXXXXXXXXXXXdDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="googleMap" style="width:500px;height:380px;"></div>
</body>
</html>