Gets or sets the current theme of the Control.
Namespace: MindFusion.Mapping
Package: Control.js
JavaScript Copy Code |
---|
Object.defineProperty(Control.prototype, "theme", { value: String }); |
String. The current theme.
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 sets its theme to the predefined "light" theme. The MapView class derives from Control.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView |