使用地图的 getBounds() 方法,该方法返回一个 LatLngBounds 对象。 返回当前视口的纬度/经度边界。如果地图尚未初始化(即mapType仍为null),或者尚未设置中心点和缩放级别,则结果为null或undefined。 Maps V3 Javascript API文档