3 Introduction to Google Map API
Google maps API is available to users for free and applies to all websites. The Google Maps API enables you to embed Google Maps into your Web pages using JavaScript. The API provides a number of useful tools for working with maps (like maps on a http://ditu.google.com Web page) and adding content to the map through a variety of services, enabling you to create powerful map applications on your site.
4 Help Resources
? Google Maps JavaScript API v3? Chinese page: Https://developers.google.com/maps/documentation/javascript/tutorial?hl=zh-cn? English page:
Https://developers.google.com/maps/documentation/javascript/tutorial
Here are all API interface introductions and examples.
? Google Maps Markers
http://mabp.kiev.ua/2010/01/12/google-map-markers/
This is where I found the most official Google icons. Copy the icon URL directly into the program to use.
5 Hello Google Maps
<title>google Maps API V3 demo</title>
<script type= "Text/javascript" src= ' http://maps.googleapis.com/maps/api/js?v=3&sensor=true&language= HK ' ></script>
<script type= "Text/javascript" >
var map;
function Initialize () {
var myoptions = {
Zoom:13,
Center:new google.maps.LatLng (22.1623, 113.5552),
MapTypeId:google.maps.MapTypeId.ROADMAP,
Scalecontrol:true,
Scalecontroloptions: {
Position:google.maps.ControlPosition.LEFT_BOTTOM
}
}
Map = new Google.maps.Map (document.getElementById ("Map_canvas"), myoptions);
}
</script>
<body onload= "Initialize ()" >
<div id= "Map_canvas" style= "width:100%; height:100%; " ></div>
</body>
Google Map API V3 Development (2)