首页
HTML / CSS
XML技术
Java技术
脚本语言
前端技术
框架
数据库
高级语言
软件测试
开发工具
大数据
其他技术
Google 地图 API 教程
Google API 教程
Google 地图 API
Google 地图基础
Google 地图叠加层
Google 地图事件
Google 地图控件集
Google 地图类型
Google 地图参考手册
地图 API Map() 构造器
地图 API
getBounds()
方法
Map() 构造器
实例
返回当前视口的西南纬度/经度和东北纬度/经度:
map.getBounds();
定义和用法
getBounds() 方法返回当前视口的西南纬度/经度和东北纬度/经度。
语法
mapvariable
.getBounds();
返回值
值
描述
(south-west latitude, longitude),(north-east latitude, longitude)
从点的西南角和东北角规定一个矩形。
Map() 构造器
上一篇
地图 API MapOptions 对象
下一篇
地图 API getCenter() 方法