var map = new AMap.Map('container',{
zoom: 10,
center: [116.397428, 39.90923],
layers: [new AMap.TileLayer.Satellite()],
mapStyle: 'amap://styles/whitesmoke',
viewMode: '2D',
lang:'zh_cn',
});
zoom 设置无效原因很多,设置Marker,和添加搜索功能可能都会导致zoom失效
使用地图状态来设置

GaodeMap(){
let _this = this;
let map = new AMap.Map('mapLocation', {
});
let placeSearch = new AMap.PlaceSearch({
city: ''
})
placeSearch.search(_this.windowTransaction.contactAddr, function (status, result) {
let pois = result.poiList.pois;
if(pois.length == 0){
return;
}
let poi = pois[0] ;
console.log(poi)
let marker = new AMap.Marker({
position: poi.location,
title: poi.name,
icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
});
map.add(marker);
map.setFitView();
map.setZoom(17);
})
}