var map = new AMap.Map("allmap",{
resizeEnable: true,
zoom:13,
center: [116.39,39.9]//new AMap.LngLat(116.39,39.9)
});
//
AMap.service(["AMap.PlaceSearch"], function() {
var placeSearch = new AMap.PlaceSearch({ //
map: map
});
//
placeSearch.search(_SearchName);
});
after the mobile H5 page calls Amap, the zoom level zoom:13.
is set, but after the search instance is set, the zoom level will become invalid.
as shown in the figure:
what should be set for zooming to take effect?