将指定城市设为地图中心点/ marker标注居中显示

 将用户切换的城市设为中心显示

map.centerAndZoom(cityName,12);

  

将marker标注居中显示

map.setCenter(points)     //points是点的坐标

  

posted @ 2019-08-02 10:57  番茄西红柿u  阅读(1106)  评论(0编辑  收藏  举报