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