Represents a container for map layers.
Namespace: MindFusion.Mapping
File: MapView.js
JavaScript Copy Code |
---|
// class |
Remember always to call the load method after you've finished customizing the map.
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 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(); |
MindFusion.Mapping.Control
MindFusion.Mapping.MapView