SMap.LngLatBounds
目录 |
说明
- 通过西南角、东北角的经纬度坐标,构建经纬度矩形区域对象,类似于PixelBounds()的对象构建。
构造函数
SMap.LngLatBounds(southWest:SMap.LngLat,northEast:SMap.LngLat)
- 通过西南、东北角的经纬度坐标构建经纬度矩形区域对象。
参数
- southWest
- 西南角的经纬度坐标。
- northEast
- 东北角的经纬度坐标。
示例
var lngLatBounds=new SMap.LngLatBounds(new SMap.LngLat(116.22848510742187, 39.810382171956206), new SMap.LngLat(116.56631469726562, 40.00815750046493));
属性
southWest:SMap.LngLat
- LngLatBounds对象西南角的经纬度坐标。
northEast:SMap.LngLat
- LngLatBounds对象东北角的经纬度坐标。
示例
var lngLatBounds=new SMap.LngLatBounds(new SMap.LngLat(116.22848510742187, 39.810382171956206), new SMap.LngLat(116.56631469726562, 40.00815750046493)); alert(lngLatBounds.getNorthEast().lngX+";"+lngLatBounds.getNorthEast().latY);
文档更新时间: 2011-03-22