Updated Interaction (markdown)
+2
-5
@@ -28,7 +28,7 @@
|
|||||||
map.moveTo(center, map.getResolution() * scale, options);
|
map.moveTo(center, map.getResolution() * scale, options);
|
||||||
```
|
```
|
||||||
|
|
||||||
(Alt) Drag Rotate:
|
## (Alt) Drag Rotate:
|
||||||
|
|
||||||
* No rotation constraint while rotating
|
* No rotation constraint while rotating
|
||||||
* Apply rotation constraint when releasing mouse to determine the final angle
|
* Apply rotation constraint when releasing mouse to determine the final angle
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
map.rotate(angle, options);
|
map.rotate(angle, options);
|
||||||
```
|
```
|
||||||
|
|
||||||
Mouse Wheel Zoom:
|
## Mouse Wheel Zoom:
|
||||||
|
|
||||||
* Apply resolution constraint as the user scrolls
|
* Apply resolution constraint as the user scrolls
|
||||||
* Mouse wheel handler:
|
* Mouse wheel handler:
|
||||||
@@ -52,7 +52,4 @@ Mouse Wheel Zoom:
|
|||||||
var options = {constrain: true, animate: false};
|
var options = {constrain: true, animate: false};
|
||||||
map.zoomTo(center, map.getResolution() * scale, options);
|
map.zoomTo(center, map.getResolution() * scale, options);
|
||||||
```
|
```
|
||||||
```
|
|
||||||
|
|
||||||
Map API:
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user