SetTimeRequest RPC
Allows programmatic change of time for 3d map
Use cases
- Change time for sun position and shadows
Description
Requests time to be changed Triggers TimeChangedEvent.
Parameters
(* means the parameter is required)
Name | Type | Description | Default value |
---|---|---|---|
\* date | String | DD/mm date to be set | |
\* time | String | HH:mm time to be set | |
year | Number | Year for date | Current year |
Examples
Set time
var sb = Oskari.getSandbox();
var date = "28/2";
var time = "12:00";
var year = 2010
sb.postRequestByName('SetTimeRequest', [date, time, year]);
Related api
- TimeChangedEvent