Initializes a new instance of the MapView class.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
function MapView ([element]) |
HTMLElement. The control's associated Dom element.
ExampleThe 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 adds a new MapLayer that provides map tiles to it:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; // create a new instance of the mapView var l = new m.MapLayer(); |
See Also