关于在网页加入google地图并标识具体位置

教程http://www.codechina.org/doc/google/gmapapi/
地址http://code.google.com/intl/zh-CN/apis/maps/
教程http://www.codechina.org/doc/google/gmapapi/
什么是 Google 地图 API?
Google 地图 API 使您能够使用 JavaScript 将 Google 地图嵌入自己的网页中。API 提供了大量实用工具用以处理地图(正如 http://maps.google.com 网页上的地图),并通过各种服务向地图添加内容,从而使您能够在您的网站上创建功能强大的地图应用程序。
新增! Google Maps API for Flash® - 在 Adobe® Flash 环境中构建和部署地图应用程序!
Sign up for a Google Maps API key, or read more about the API.
Map data ©2009 Tele Atlas - Terms of Use
地图 API 是一项免费的测试版服务,在客户可免费访问的任何网站上均可使用。有关更多信息,请参阅使用条款。

学习这个API最简单的方法就是看一个简单的例子。下面的网页显示一个500x300的地图,中心位于California,Palo Alto:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example</title>
    <script src="http://maps.google.com/maps?file=api&;v=2&key=abcdefg"
            type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
      }
    }

    //]]>
    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
    <div id="map" style="width: 500px; height: 300px"></div>
  </body>
</html> 

 

 

http://maps.google.com/

 

注册使用 Google 地图 API

http://code.google.com/intl/zh-CN/apis/maps/signup.html

 

你可能感兴趣的:(JavaScript,XHTML,Google,Flash,Adobe)