Gets the bounding rect of this control.
Namespace: MindFusion.Mapping
Package: Control.js
JavaScript
![]() |
---|
Object.defineProperty(Control.prototype, "rect", { value: Rect }); |
Rect. The bounding rect.
The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it checks if the Control's left coordinate is greater than 100 pixels. The MapView class derives from Control.
JavaScript
![]() |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView if(view.rect.left > 100) |