Google Maps API Third Edition released

Source: Internet
Author: User

 

I'm so excited that Google Map API has released a new version, and I don't need the API Key anymore. I'm going to have a good time playing with this. The following is the specific report:

According to the Google Geo Developers Blog, about 0.15 million active websites are using this API since the JavaScript-based Google Maps API was released three years ago, google Maps API has become the most popular and reliable network development tool. Now, Google map API has been significantly revised, users can now use the third-edition map API application in Google Code Labs.

The main feature of the new version of the API is to increase the speed, especially for the rendering speed of mobile browsers. Last year, Google began to think about the feasibility of running the map API on mobile devices, with the launch of powerful and complete browsers for iPhone and G1, it is possible to port the second version of map API on the Web to a mobile browser, but there are many restrictions on the second version of API, therefore, Google launched the third-edition map API program.

To enable users to use the third-edition API as soon as possible, Google has released its basic functions in the lab. Click here to view the documentation. Of course, all the functions are not fully developed, users can provide some feedback on their use. Users can use the third-edition API to improve the user browsing experience without rewriting the old mashup code.

APIS of the third edition have the following functions:

1. Supports Chrome, iPhone Safari, and Android phones.

2. You do not need API keys, so that you can integrate the code into the RSS reader without any errors.

3. Based on the Model-View-Controller framework, this reduces JavaScript downloads and is easy to use.

4. Enable the default UI and provide the default UI controls and methods. This allows the user to automatically update the UI to the latest format. Of course, you can disable this function.

5. namespace. Everything is in the namespace of Google. Maps. *, and there is no global variable prefixed with "G.

6. geocoding API has been rewritten based on user feedback.

Click here to view the API reference and documentation for the third edition.

The following is a sample code for the API of the third edition.

<HTML>
<Head>
<Meta name = "viewport" content = "Initial-scale = 1.0, user-scalable = No">
<SCRIPT type = "text/JavaScript" src = "http://maps.google.com/maps/api/js? Sensor = false "> </SCRIPT>
<SCRIPT type = "text/JavaScript">
Function initialize (){
VaR latlng = new Google. Maps. latlng (-34.397, 150.644 );
VaR myoptions = {
Zoom: 8,
Center: latlng,
Maptypeid: Google. Maps. maptypeid. Roadmap
};
Var map = new google. maps. Map (document. getElementById ("map_canvas"), myOptions );
}
</Script>
</Head>
<Body onload = "initialize ()">
<Div id = "map_canvas" style = "width: 100%; height: 100%">
</Body>
</Html>

 

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.