Loads all layers.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
function load (center, [zoomLevel]) |
LatLong. A LatLong instance representing the geographical center of the map.
Number. The zoom level of the map.
The load method should always be called after you've finished customizing the map. It reads the data for all layers.
The following example creates a data array with locations and a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it adds a MapLayer with map tiles and loads the first location with a zoom factor of 8:
JavaScript Copy Code |
---|
// create a list with possible locations
// create a map layer // load the map |