手动添加,同时也需要手动修改倾斜度
var map = new AMap.Map('container',{
zoom:17,
pitch:90,
center:[116.379391,39.861536],
viewMode:'3D', //变成了3d 地图了
buildingAnimation:true // 可以让显示的建筑物变成动画现实
});
添加插件:plugin=AMap.ControlBar
map.addControl(new AMap.ControlBar({
showZoomBar:true, // 显示 zoom条控件
// showControlButton:true,// 默认为true,若为false则只显示一个指南针形状-->可以取消倾斜旋转的按钮
position:{ //控件的定位
right:'50px',
top:'30px'
}
}))