com.supermap.web.events
public class ViewBoundsEvent
继承 ViewBoundsEvent Inheritance flash.events.Event

地图可视范围事件类. 该类定义了一种与地图可视范围相关的事件类型,即地图可视范围改变事件 viewBoundsChange。当地图可视范围发生变化时,则触发该事件。
此类型的事件由 Map 类声明,其它类不可对其进行监听或派发。



公共属性
  属性 定义方
    levelChange : Boolean
[read-only] 判断地图显示级别是否已发生变化。
ViewBoundsEvent
    resolution : Number
[read-only] 获取可视范围发生变化后的地图分辨率。
ViewBoundsEvent
    viewBounds : Rectangle2D
[read-only] 获取发生变化后的地图可视范围。
ViewBoundsEvent
公共方法
  方法 定义方
   
ViewBoundsEvent(type:String, viewBounds:Rectangle2D = null, levelChange:Boolean = false, resolution:Number)
初始化 ViewBoundsEvent 类的新实例。
ViewBoundsEvent
公共常量
  常量 定义方
    VIEW_BOUNDS_CHANGE : String = viewBoundsChange
[static] 定义 VIEW_BOUNDS_CHANGE 事件的 type 属性值。
ViewBoundsEvent
    VIEW_BOUNDS_UPDATE : String = viewBoundsUpdate
[static] 定义 VIEW_BOUNDS_UPDATE 事件的 type 属性值。
ViewBoundsEvent
属性详细信息
levelChange 属性
levelChange:Boolean  [read-only]

判断地图显示级别是否已发生变化。


Implementation
    public function get levelChange():Boolean
resolution 属性  
resolution:Number  [read-only]

获取可视范围发生变化后的地图分辨率。


Implementation
    public function get resolution():Number
viewBounds 属性  
viewBounds:Rectangle2D  [read-only]

获取发生变化后的地图可视范围。


Implementation
    public function get viewBounds():Rectangle2D
构造函数详细信息
ViewBoundsEvent () 构造函数
public function ViewBoundsEvent(type:String, viewBounds:Rectangle2D = null, levelChange:Boolean = false, resolution:Number)

初始化 ViewBoundsEvent 类的新实例。

参数
type:String — 事件类型。必设属性。
 
viewBounds:Rectangle2D (default = null) — 发生变化后的地图可视范围。
 
levelChange:Boolean (default = false) — 表示地图显示级别是否发生变化。
 
resolution:Number (default = NaN) — 可视范围发生变化后的地图分辨率。
常量描述
VIEW_BOUNDS_CHANGE 常量
public static const VIEW_BOUNDS_CHANGE:String = viewBoundsChange

定义 VIEW_BOUNDS_CHANGE 事件的 type 属性值。

VIEW_BOUNDS_UPDATE 常量  
public static const VIEW_BOUNDS_UPDATE:String = viewBoundsUpdate

定义 VIEW_BOUNDS_UPDATE 事件的 type 属性值。