Gets a value indicating whether this control is loaded and ready for interaction.
Namespace: MindFusion.Mapping
Package: Control.js
JavaScript Copy Code |
---|
Object.defineProperty(Control.prototype, "loaded", { value: Boolean }); |
Boolean. true if the Control is loaded; otherwise false.
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 is loaded. The MapView class derives from Control.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView if(view.loaded) |