整理Google地图使用方法

3997
    


来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长


Google Map Api google.maps.Map(Elem, Option) 初始化地图 map = new google.maps.Map(elem, option) elem: document.getElementById(div) option: Option = { zoom: 13, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP } zoom: 地图缩扩级别(一般11-13) center: 地图中心位置 「 latlng =new google.maps.LatLng(lat, lng) 」 mapTypeId: 地图类型(正常、热导、3D、气象等) 「正常:google.maps.MapTypeId.ROADMAP」 EP:在DOM上可以出现地图 google.maps.LatLng(lat, lng) 格式化经纬度 latlng = new google.maps.LatLng(lat, lng) ( 在 google.maps.Map(elem, option) 中有过接触 ) google.maps.Geocoder 信息转化 geocoder = new google.maps.Geocoder() 该方法可以获取 经纬度->地址、地址->经纬度等 //经纬度->地址 status===200成功 / results结果 geocoder.geocode({ location: latLng }, function (results, status) {}); //地址->经纬度 geocoder.geocode({ address: address }, function (results, status) {}); google.maps.InfoWindow(option) 在地图上有地址、经纬度信息 infowindow = new google.maps.InfoWindow(option) message = "座標:" + piont.lat() + " , " + piont.lng() + "
" + "地址:" + address options = { content: message, size: new google.maps.Size(50, 50) } infowindow = new google.maps.InfoWindow(option); marker = new google.maps.Marker({ position: latlng, map: map }); //放置信息 infowindow.open(map, marker); //清除信息 infowindow.close() 「Event」google.maps.event.addListener(map, click, fn); 地图上点击事件 google.maps.event.addListener(map, click, function (event) { console.log(event.latLng); }); google.maps.places.AutocompleteService() 初始化 service = new google.maps.places.AutocompleteService() service.getQueryPredictions({ input: 南昌 }, fn) fn(predictions, status) predictions:关于南昌的智能提示


免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
				暂无来源信息			 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->