From a049fb8aa48d1914c9325c554e00618e6669bbe7 Mon Sep 17 00:00:00 2001 From: zishang <10894778+zishang520@users.noreply.github.com> Date: Tue, 8 Sep 2020 14:27:16 +0800 Subject: [PATCH] Update Amap.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复js报错 Uncaught SyntaxError: Unexpected identifier --- src/Map/Amap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Map/Amap.php b/src/Map/Amap.php index 70afcbc..56c62d7 100644 --- a/src/Map/Amap.php +++ b/src/Map/Amap.php @@ -17,9 +17,9 @@ function init(name) { var lng = $('#{$id['lng']}'); var map = new AMap.Map(name, { - zoom: {$this->getParams('zoom')} + zoom: {$this->getParams('zoom')}, center: [lng.val() || 0, lat.val() || 0],//中心点坐标 - viewMode:'3D'//使用3D视图 + viewMode:'3D',//使用3D视图 }); var marker = new AMap.Marker({ @@ -73,4 +73,4 @@ function init(name) { })(); EOT; } -} \ No newline at end of file +}