Scrolls the map to a new center point.
Namespace: MindFusion.Mapping
File: MapView.js
JavaScript Copy Code |
---|
function scrollTo (center) |
Point. A Point instance representing the client position of the new map center.
The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. It handles the click event and scrolls to the clicked point:
JavaScript Copy Code |
---|
// create a new instance of the mapView // create a map layer view.click.addEventListener(mapViewClickHandler); function mapViewClickHandler( sender, args ) |