代码
var map = new BMap.Map('map');
map.centerAndZoom('上海市', 12); // 初始化地图,设置中心点坐标和地图级别
map.enableScrollWheelZoom();

根据区域地址名称设置初始化地图视野

预览