Silent 6 years ago
parent
commit
05453260dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/views/admin/base/locations/index.blade.php

+ 1 - 1
resources/views/admin/base/locations/index.blade.php

xqd xqd
@@ -68,7 +68,6 @@ $(function() {
     });
     
     $('#my-location-btn').on('click', function () {
-        console.log(navigator.geolocation);
         if (navigator.geolocation) {
             navigator.geolocation.getCurrentPosition(sgShowPosition);
         }
@@ -81,6 +80,7 @@ $(function() {
     {
         var lat = position.coords.latitude;
         var lng = position.coords.longitude;
+        console.log(lat, lng);
 		//调用地图命名空间中的转换接口   type的可选值为 1:GPS经纬度,2:搜狗经纬度,3:百度经纬度,4:mapbar经纬度,5:google经纬度,6:搜狗墨卡托
         qq.maps.convertor.translate(new qq.maps.LatLng(lat, lng), 1, function(res){
             //取出经纬度并且赋值