var MyMap = new BMap.MapType('MyMap', tileLayer, {minZoom: 16, maxZoom: 19}); map = new BMap.Map('container', {mapType: MyMap}); //map = new BMap.Map('container', {minZoom: 13, maxZoom: 19});//实例化地图 并限制地图最大最小缩放级别 map.addTileLayer(tileLayer); //添加3D图层 var opts = {anchor: BMAP_ANCHOR_TOP_LEFT, offset: new BMap.Size(10, 100)}; map.addControl(new BMap.NavigationControl(opts)); // 添加平移缩放控件 // map.addControl(new BMap.ScaleControl()); // 添加比例尺控件 // map.addControl(new BMap.OverviewMapControl()); //添加缩略地图控件 point = new BMap.Point(119.159399, 36.728477);//设定初始坐标