Google地图API教程v2.doc
上传人:qw****27 上传时间:2024-09-11 格式:DOC 页数:60 大小:1.1MB 金币:15 举报 版权申诉
预览加载中,请您耐心等待几秒...

Google地图API教程v2.doc

Google地图API教程v2.doc

预览

免费试读已结束,剩余 50 页请下载文档后查看

15 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/index.html"开发人员指南地图基础知识HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#Intro"简介HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#The_Hello_World_of_Google_Maps"Google地图的“Hello,World”HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#Loading_the_Maps_API"加载Google地图APIHYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#Map_DOM_Elements"地图DOM元素HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#GMap2"GMap2-基本对象HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#Initializing_the_Map"初始化地图HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#LoadingMap"加载地图HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#GLatLng"经度和纬度HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#MapTypes"地图属性HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#MapInteractions"地图交互HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/introduction.html#Info_Windows"信息窗口简介任何Google地图API应用程序中的基础元素都是“地图”本身。本文档讨论GMap2基础对象的用法和地图操作的基础知识。Google地图的“Hello,World”开始学习Google地图API最简单的方式是看一个简单的示例。下面的网页显示以北京的故宫博物院为中心的500x300的地图。<!DOCTYPEhtml"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><title>GoogleMapsJavaScriptAPIExample</title><scriptsrc="http://ditu.google.cn/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"type="text/javascript"></script><scripttype="text/javascript">functioninitialize(){if(GBrowserIsCompatible()){varmap=newGMap2(document.getElementById("map_canvas"));map.set