Commit 523a445 Mal Wood-Santoro
authored
1 parent 93774c6 commit 523a445 Copy full SHA for 523a445
File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,21 @@ class ScrollZoomHandler {
81
81
/**
82
82
* Set the zoom rate of a trackpad
83
83
* @param {number } [zoomRate=1/100] The rate used to scale trackpad movement to a zoom value.
84
+ * @example
85
+ * // Speed up trackpad zoom
86
+ * map.scrollZoom.setZoomRate(1/25);
84
87
*/
85
88
setZoomRate ( zoomRate : number ) {
86
89
this . _defaultZoomRate = zoomRate ;
87
90
}
88
91
89
92
/**
90
- * Set the zoom rate of a mouse wheel
91
- * @param {number } [wheelZoomRate=1/450] The rate used to scale mouse wheel movement to a zoom value.
92
- */
93
+ * Set the zoom rate of a mouse wheel
94
+ * @param {number } [wheelZoomRate=1/450] The rate used to scale mouse wheel movement to a zoom value.
95
+ * @example
96
+ * // Slow down zoom of mouse wheel
97
+ * map.scrollZoom.setWheelZoomRate(1/600);
98
+ */
93
99
setWheelZoomRate ( wheelZoomRate : number ) {
94
100
this . _wheelZoomRate = wheelZoomRate ;
95
101
}
You can’t perform that action at this time.
0 commit comments