SOURCE

console 命令行工具 X clear

                    
>
console
var map;
function mapInit(){
  map = new AMap.Map('container', {
    resizeEnable: true,
    rotateEnable:true,
    pitchEnable:true,
    zoom: 17,
    pitch:30,
    rotation:-15,
    viewMode:'3D',//开启3D视图,默认为关闭
    buildingAnimation:true,//楼块出现是否带动画
    
    expandZoomRange:true,
    zooms:[3,20],
    center:[116.333926,39.997245]
  });
  
  map.addControl(new AMap.ControlBar({
    showZoomBar:false,
    showControlButton:true,
    position:{
      right:'10px',
      top:'10px'
    }
  }))
}
mapInit()
<div id="container"></div>
    <script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.3&key=71477380fc31e5291f93952b10091bf6&plugin=AMap.Driving'></script>
    <!-- UI组件库 1.0 -->
    <script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.10"></script>
html,
    body,
    #container {
        width: 100%;
        height: 100%;
        margin: 0px;
    }