Set Flight

Set or update the camera animation when you fly to a target position.

Request URL

<baseUrl>/arcgisearth/flight(POST only)

Request parameters

ParameterDescription

camera

(required)

A JSON string that contains camera properties.

Type: string

Example:

{
    "position": {
        "x": -92,
        "y": 41,
        "z": 11000000,
        "spatialReference": {
            "wkid": 4326
        }
    },
    "heading": 2.3335941892764884E-17,
    "tilt": 6.144145559063083E-15,
    "roll": 0
}

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
}