Specifies the pivot point of the mouse wheel zoom in a MapView control.
Namespace: MindFusion.Mapping
File: Enum.js
SyntaxJavaScript
Copy Code
|
|---|
// enum |
Members| Member name | Description | |
|---|---|---|
![]() |
Center |
The zoom pivot point is the center of the map. |
![]() |
Cursor |
The zoom pivot point is the current cursor position. |
ExampleThe 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 |
See Also