console
var map;
function mapInit(){
map = new AMap.Map('container', {
resizeEnable: true,
rotateEnable:true,
pitchEnable:true,
zoom: 17,
pitch:30,
rotation:-15,
viewMode:'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>
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.10"></script>
html,
body,
#container {
width: 100%;
height: 100%;
margin: 0px;
}