Update an existing graphic in ArcGIS Earth.
Request URL
<baseUrl>/arcgisearth/graphics(PATCH only)
Request parameters
Parameter | Description |
---|---|
ID (required) | Specifies the ID of a graphic. Type: string |
geometry (optional) | The position and geometry type of graphic. It defines the JSON formats of the geometry and spatial reference objects. Support point and polyline geometry. Point parameters:
JSON syntax: Polyline parameters:
JSON syntax: Polygon parameters:
JSON syntax: |
symbol (optional) | The symbol for the graphic. Choosing a symbol for a graphic depends on the geometry type of the graphic. Type: double
|
注:
At least one of the geometry and symbol parameters is needed to update the graphic.
Example usage
A sample input for updating a point graphic in ArcGIS Earth:
{
"id":"point-picture-marker-graphic",
"geometry":{
"type":"point",
"x":-100,
"y":40
},
"symbol":{
"type":"picture-marker",
"url":"https://static.arcgis.com/images/Symbols/Shapes/BlackStarLargeB.png",
"width":"128px",
"height":"128px",
"angle":0,
"xoffset":"10px",
"yoffset":"10px"
}
}
A sample input for updating a line graphic in ArcGIS Earth:
{
"id":"polyline-simple-line-graphic",
"geometry":{
"type":"polyline",
"paths":[
[
-118,
34
],
[
-100,
40
],
[
-82,
34
]
]
},
"symbol":{
"type":"simple-line",
"color":"#000000",
"width":"24px"
}
}