SMap.LngLatBounds
说明
- 通过西南角、东北角的经纬度坐标,构建经纬度矩形区域对象,类似于PixelBounds()的对象构建。
构造函数
- 通过西南、东北角的经纬度坐标构建经纬度矩形区域对象。
参数
- southWest
- 西南角的经纬度坐标。
- northEast
- 东北角的经纬度坐标。
示例
var lngLatBounds=new
SMap.LngLatBounds(new SMap.LngLat(116.22848510742187, 39.810382171956206),
new SMap.LngLat(116.56631469726562, 40.00815750046493));
属性
- LngLatBounds对象西南角的经纬度坐标。
- 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);