← Back to LayerTree domain

LayerTree.loadSnapshot

Returns the snapshot identifier.

Domain: LayerTree experimental

Parameters

NameTypeDescription
tilesarrayAn array of tiles composing the snapshot.

Returns

NameTypeDescription
snapshotIdSnapshotIdThe 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"}