Get Graphic

Get a graphic by specifying the graphic ID.

Request URL

<baseUrl>/arcgisearth/graphics/{id}

Request parameters

ParameterDescription

id

(required)

Graphic ID

Type: string

Example usage

http://localhost:8000/arcgisearth/graphics/polyline-simple-line-graphic

JSON Response example

Below is a JSON response example for a line graphic:

{
    "id": "polyline-simple-line-graphic",
    "geometry": {
        "paths": [
            [
                [
                    -118,
                    34
                ],
                [
                    -100,
                    40
                ],
                [
                    -82,
                    34
                ]
            ]
        ],
        "type": "polyline"
    },
    "symbol": {
        "color": [
            51,
            204,
            51,
            255
        ],
        "type": "simple-line",
        "width": 1.5
    }
}