Pans the map to a new center location.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
function panTo (center) |
LatLong. A LatLong instance representing the geographic location of the new map center.
ExampleThe 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 and pans the view to it:
JavaScript
Copy Code
|
|---|
// create a list with possible locations
// create a map layer // load the map |
See Also