b0VIM 7.2 jX
. 2 root iZ28nw0p1jxZ /usr/local/apache/htdocs/dd/index.html utf-8U3210 #"! U tp Y x Z P K " n P y I U ad . Y E
d 2
y
x
t
~ f L 2 s p P %
0
G
i L 1 + $ x " Q N t . " x k var address = "百度标注:" + baiduAddress.province + "," + baiduAddress.city + "," + baiduAddress.district + "," + baiduAddress.street + "," + baiduAddress.streetNumber; baiduAddress = rs.addressComponents; function getCityByBaiduCoordinate(rs) { } marker.setLabel(labelgps); //添加GPS标注 var labelgps = new BMap.Label(address, { offset: new BMap.Size(20, -10) }); map.addOverlay(marker); // 将标注添加到地图中 var marker = new BMap.Marker(gpsPoint); // 创建标注 var address = "GPS标注:" + gpsAddress.province + "," + gpsAddress.city + "," + gpsAddress.district + "," + gpsAddress.street + "," + gpsAddress.streetNumber; gpsAddress = rs.addressComponents; function getCityByCoordinate(rs) { } geoc.getLocation(baiduPoint, getCityByBaiduCoordinate); var geoc = new BMap.Geocoder(); baiduPoint = point; translateCallback = function (point) { } //BMap.Convertor.translate(gpsPoint, 0, translateCallback); //geoc.getLocation(gpsPoint, getCityByCoordinate); //var geoc = new BMap.Geocoder(); //根据坐标逆解析地址 //map.centerAndZoom(gpsPoint, 15); //gpsPoint = new BMap.Point(longitude, latitude); // 创建点坐标 //alert("坐标经度为:" + latitude + ", 纬度为:" + longitude ); //map = new BMap.Map("map"); //alert(latitude);alert(longitude); }); } var data = json.data; success:function (json){ dataType: "json", url: "/index.php/Info/updateweizhi?time="+new Date(), data: 'logx='+latitude+'&logy='+longitude, async: true, type: "GET", $.ajax({ //alert('logx='+latitude+'&logy='+longitude); latitude = value.coords.latitude+0.008774687519; longitude = value.coords.longitude+0.00604531687912; function showMap(value) { var latitude; var longitude; } } alert("您的浏览器不支持使用HTML 5来获取地理位置服务"); } else { navigator.geolocation.getCurrentPosition(showMap, handleError, { enableHighAccuracy: true, maximumAge: 1000 }); if (navigator.geolocation) { //获取GPS坐标 myCity.get(getCityByIP); var myCity = new BMap.LocalCity(); //根据IP获取城市 function getLocation() { var baiduAddress; var gpsAddress; var baiduPoint; var gpsPoint; var map;