ASP.NET Pack Programmer's Guide
Control.element Property
See Also
 





Gets a reference to the control's element.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Control.prototype, "element", { value: HTMLElement });

 Property Value

HTMLElement

 Example

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 uses the element property to make the view completely transparent. The MapView derives from Control.

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.element.style.opacity = "0";

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace