← Back to LayerTree domain
LayerTree.loadSnapshot
Returns the snapshot identifier.
Domain: LayerTree
experimental
Parameters
| Name | Type | Description |
tiles | array | An array of tiles composing the snapshot. |
Returns
| Name | Type | Description |
snapshotId | SnapshotId | The id of the snapshot. |
Example Request
{
"id": 1,
"method": "LayerTree.loadSnapshot",
"params": {
"tiles": []
}
}
Example Response
{
"id": 1,
"result": {
"snapshotId": "snapshotId-value"
}
}
Usage in Node.js
const result = await send('LayerTree.loadSnapshot', {"tiles": []});
console.log(result);
// {"snapshotId": "snapshotId-value"}