ASP.NET Pack Programmer's Guide
MapView.scrollX Property
See Also
 





Gets the map's horizontal scroll position relative to the control bounds.

Namespace: MindFusion.Mapping
Package: MapView.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(MapView.prototype, "scrollX", { value: Number });

 Property Value

Number. A number specifying the horizontal scroll position.

 Example

The following code creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it scrolls 300 pixels horizontally and 150 pixels vertically:

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
view.scrollX(300);
view.scrollY(150);

 See Also

MapView Members
MapView Class
MindFusion.Mapping Namespace