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