loadSnapshot method

Future<SnapshotId> loadSnapshot(
  1. List<PictureTile> tiles
)

Returns the snapshot identifier. tiles An array of tiles composing the snapshot. Returns: The id of the snapshot.

Implementation

Future<SnapshotId> loadSnapshot(List<PictureTile> tiles) async {
  var result = await _client.send('LayerTree.loadSnapshot', {
    'tiles': [...tiles],
  });
  return SnapshotId.fromJson(result['snapshotId'] as String);
}