Google Map API

Google 地图 API学习资料

专业版开发人员指南 

 http://code.google.com/intl/zh-CN/apis/maps/documentation/premier/guide.html

中文资料部分 (包括中文的文档说明等,以下的网址都是中文内容。)

  下面的关于API的中文文档

  Google Maps API 第2版中文文档 http://www.step1.cn/GoogleApi/map2/documentation.htm

  Google Maps API 第2版升级指南 http://www.step1.cn/GoogleApi/map2/upgrade.htm

  Google Maps API 第2版类参考 http://www.step1.cn/GoogleApi/map2/reference.htm

  另外一个版本的Google Maps API 2中文文档 http://www.zmap.org/doc/maps/documentation/

  Google Maps API 第1版中文文档 http://www.step1.cn/GoogleAPI/map/documentation.htm

  下面是关于KML文件的中文文档

  Google Earth KML中文说明(一) http://gisman.bokee.com/5294713.html

  Google Earth KML中文说明(二) http://gisman.bokee.com/5294722.html

  Google Earth KML中文说明(基于Google Earth客户端版本3.0 的KML 版本2.0) http://www.step1.cn/googleapi/map/kml.htm

  英文资料部分 (主要是Google官方的文档说明,如果觉得中文翻译的有问题,也可以看看这些原始内容。)

  Google Maps API 官方网 http://www.google.com/apis/maps/

  Google Maps API 英文文档 http://www.google.com/apis/maps/documentation/

  Google Maps API 官方Blog http://googlemapsapi.blogspot.com/

  Google Maps API 论坛 http://groups.google.com/group/Google-Maps-API

  Google KML 的官方文档 http://earth.google.com/kml/

  Google API官方网 http://code.google.com/

 XHTML命名空间

如果要在地图上显示折线(类似于 Google 地图用于显示行车路线的线),您需要在 XHTML 文档中使用 VML 命名空间才能使所有内容在 Internet Explorer 中正常运行。XHTML 文档的开头应如下所示:

<!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" xmlns:v="urn:schemas-microsoft-com:vml">

加载地图,首先申请一个key
<script type="text/javascript" src="http://ditu.google.cn/maps?file=api&v=2&key=abcdefg&sensor=true"></script>

原文地址:https://www.cnblogs.com/mac_arthur/p/1666398.html