Google Map API V3 Development (2)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.