Gets or sets the width of this Control.
Namespace: MindFusion.Mapping
Package: Control.js
JavaScript
![]() |
---|
Object.defineProperty(Control.prototype, "width", { value: Unit }); |
Unit. The width.
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 width of the view is more than 100. The MapView class derives from Control.
JavaScript
![]() |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView |