包 | com.supermap.web.events |
类 | public class ViewBoundsEvent |
继承 | ViewBoundsEvent ![]() |
属性 | 定义方 | ||
---|---|---|---|
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]
判断地图显示级别是否已发生变化。
public function get levelChange():Boolean
resolution | 属性 |
resolution:Number
[read-only]
获取可视范围发生变化后的地图分辨率。
public function get resolution():Number
viewBounds | 属性 |
viewBounds:Rectangle2D
[read-only]
获取发生变化后的地图可视范围。
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 属性值。