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 +}