Updated Interaction (markdown)

elemoine
2012-09-26 01:56:05 -07:00
parent a779288345
commit 7797fc5b72

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