EnableMapKeyboardMovementRequest
Enable map keyboard movement.
Use cases
- enable keyboard pan and zoom movement
- enable keyboard pan movement
- enable keyboard zoom movement
Description
Requests enable map movements by keyboard.
Parameters
(* means the parameter is required)
Name | Type | Description | Default value |
---|---|---|---|
options | Array | pan or zoom |
Examples
Enable pan and zoom keyboard movement
var sb = Oskari.getSandbox();
sb.postRequestByName('EnableMapKeyboardMovementRequest');
Enable pan keyboard movement
var sb = Oskari.getSandbox();
sb.postRequestByName('EnableMapKeyboardMovementRequest', [['pan']]);
Enable zoom keyboard movement
var sb = Oskari.getSandbox();
sb.postRequestByName('EnableMapKeyboardMovementRequest', [['zoom']]);