Specifies the pivot point of the mouse wheel zoom in a MapView control.
Namespace: MindFusion.Mapping
Package: Enum.js
JavaScript Copy Code |
---|
// enum |
Member name | Description | |
---|---|---|
Center |
The zoom pivot point is the center of the map. |
|
Cursor |
The zoom pivot point is the current cursor position. |
The following code creates a new MapView from an HTML <div> element with an id "mapView" and sets its zoomPivot property to "Cursor".
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView |