Set or update the camera animation when you fly to a target position.
Request URL
<baseUrl>/arcgisearth/flight(POST only)
Request parameters
Parameter | Description |
---|---|
(required) | A JSON string that contains camera properties. Type: string Example: |
duration (optional) | Set the flying time counts in seconds. If not specified, the default value is 2. Type: int |
Example usage
{
"camera": {
"position": {
"x": -92,
"y": 41,
"z": 11000000,
"spatialReference": {
"wkid": 4326
}
},
"heading": 2.3335941892764884E-17,
"tilt": 6.144145559063083E-15,
"roll": 0
},
"duration": 2
}