API学习地址
其实google map的api很简单的,这里是学习文档的传送门http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/articles.html
代码的一些实例
可以国际化的google map
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false&language=语言-国家缩写">
</script>
在language后面写上语言国家缩写就可以国际化google map了
Map类
初始化地图的方法:
var myOptions = {
zoom : 11,
center : new google.maps.LatLng(30.1234567,120.3456789),
mapTypeId : google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("mainMap
API学习地址
其实google map的api很简单的,这里是学习文档的传送门http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/articles.html
代码的一些实例
可以国际化的google map
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false&language=语言-国家缩写">
</script>在language后面写上语言国家缩写就可以国际化google map了
Map类
初始化地图的方法:
var myOptions = {
zoom : 11,
center : new google.maps.LatLng(30.1234567,120.3456789),
mapTypeId : google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("mainMap

这篇博客详细介绍了如何使用Google Map V3 API进行地图服务开发,包括地图的国际化、Map类的初始化、Marker与InfoWindow的使用、LatLngBounds类的范围自适应功能以及Geocoder类的地址转经纬度功能。同时,还展示了如何实现地图导航服务。
最低0.47元/天 解锁文章
163

被折叠的 条评论
为什么被折叠?



