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("mainMapLayer"),myOptio
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("mainMapLayer"),myOptio