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