Skip to content

Commit

Permalink
Merge pull request #33 from zishang520/patch-2
Browse files Browse the repository at this point in the history
Update Amap.php
  • Loading branch information
z-song authored Sep 8, 2020
2 parents 46a3c4c + a049fb8 commit 7c6719f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Map/Amap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -73,4 +73,4 @@ function init(name) {
})();
EOT;
}
}
}

0 comments on commit 7c6719f

Please sign in to comment.