如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
GoogleMapsJavaScriptAPIV3辅导手册注意:以下网页中提到的GoogleMapsJavaScriptAPI第3版现在是正式的JavaScriptAPI版本。该API的第2版已根据我们的弃用政策正式弃用。欢迎您将代码移植到这个功能更强、最近更新的版本中!HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"Intro"简介HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"HelloWorld"GoogleMaps的“世界,您好”HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"Loading_the_Maps_API"载入GoogleMapsAPI第3版HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"Map_DOM_Elements"地图DOM元素HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"MapOptions"地图选项HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"google.maps.Map"google.maps.Map-基本对象HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"LoadingMap"载入地图HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"LatLng"纬度和经度HYPERLINK"http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/tutorial.html"\l"MapTypes"地图类型简介任何GoogleMaps第3版API应用程序中的基本元素都是“地图”本身。本文介绍了google.maps.Map基础对象的用法和地图操作的基础知识。(如果您已经学习了第2版的辅导手册,您会发现,这两版辅导手册中的很多内容都是相同的。但两者之间也会有些区别,因此,请仔细阅读本文。)GoogleMaps第3版的“Hello,World”初步了解GoogleMapsAPI的最简单方法就是看一个简单的示例。以下网页显示了以澳大利亚新南威尔士的悉尼为中心的一个地图:<html><head><metaname="viewport"content="initial-scale=1.0,user-scalable=no"/><scripttype="text/javascript"src="http://maps.google.com/maps/api/js?sensor=set_to_true_or_false"></script><scripttype="text/javascript">functioninitialize(){varlatlng=newgoogle.maps.LatLng(-34.397,150.644);varmyOptions={zoom:8,center:latlng,mapTypeId:google.maps.MapTypeId.ROADMAP};varmap=newgoogle.maps.Map(document.getElementById("map_canvas"),myOptions);}</script></head><bodyonload="initialize()"><divid="map_canvas"style="width:100%;height:100%"></d