-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add support for optional changesets when loading iModels #12778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
2f8a6e5
993f73a
7009961
e8cad43
d339a71
8bd3429
3b25fd2
161fad8
9974eb4
ab4867f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,13 +35,19 @@ const ITwinData = {}; | |
| * | ||
| * @param {string} iModelId The id of the iModel to load | ||
| * @param {Cesium3DTileset.ConstructorOptions} [options] Object containing options to pass to the internally created {@link Cesium3DTileset}. | ||
| * @param {string} [changesetId] The id of the changeset to load, if not provided the latest changesets will be used | ||
| * @returns {Promise<Cesium3DTileset | undefined>} A promise that will resolve to the created 3D tileset or <code>undefined</code> if there is no completed export for the given iModel id | ||
| * | ||
| * @throws {RuntimeError} If no exports for the given iModel are found | ||
jjspace marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * @throws {RuntimeError} If all exports for the given iModel are Invalid | ||
| * @throws {RuntimeError} If the iTwin API request is not successful | ||
| */ | ||
| ITwinData.createTilesetFromIModelId = async function (iModelId, options) { | ||
| const { exports } = await ITwinPlatform.getExports(iModelId); | ||
| ITwinData.createTilesetFromIModelId = async function ( | ||
| iModelId, | ||
| options, | ||
| changesetId, | ||
| ) { | ||
|
||
| const { exports } = await ITwinPlatform.getExports(iModelId, changesetId); | ||
|
|
||
| if ( | ||
| exports.length > 0 && | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.