Represents a container for map layers.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
// class |
RemarksRemember always to call the load method after you've finished customizing the map.
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. FInally it calls the load method to load all added layers and specify the center of the visible map:
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; // create a new instance of the mapView var l = new m.MapLayer(); |
Inheritance HierarchyMindFusion.Mapping.Control![]()
MindFusion.Mapping.MapView
See Also