From ef2d4b7c4e84a50e1ca4fe14ed946959dc8f65a1 Mon Sep 17 00:00:00 2001 From: hans941 Date: Wed, 13 Mar 2019 16:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E5=BE=B7=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E7=BB=8F=E7=BA=AC=E5=BA=A6=E5=9D=90=E6=A0=87=E5=8F=8D?= =?UTF-8?q?=E8=BD=AC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/latlong.blade.php | 4 ++-- src/Map/Amap.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/latlong.blade.php b/resources/views/latlong.blade.php index a8f4ff9..3457713 100644 --- a/resources/views/latlong.blade.php +++ b/resources/views/latlong.blade.php @@ -8,10 +8,10 @@
- +
- +
diff --git a/src/Map/Amap.php b/src/Map/Amap.php index 0167066..808fc55 100644 --- a/src/Map/Amap.php +++ b/src/Map/Amap.php @@ -18,14 +18,14 @@ function init(name) { var map = new AMap.Map(name, { zoom:11, - center: [lat.val()|| 0, lng.val()|| 0],//中心点坐标 + center: [lng.val() || 0, lat.val() || 0],//中心点坐标 viewMode:'3D'//使用3D视图 }); var marker = new AMap.Marker({ map: map, draggable: true, - position: [lat.val() || 0, lng.val()|| 0], + position: [lng.val() || 0, lat.val() || 0], }) map.on('click', function(e) {