WIP Create DTA key in to attach an imodel using the repositories API #7348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is WIP and mostly to be used as an example.
The important changes necessary to attach the iModel to the iTwin Viewer are in two parts. First, the calling of the Repositories API and parsing of responses which is handled as a part of the
RepositoryApiTool
inViewportTools.ts
. Secondly, there are changes to ensure the sas token is passed along when the tileset url is parsed inRealityDataSourceTilesetUrlImpl.ts
. Without these changes, attempts to fetch the tiles within the tileset will be unauthorized and fail because the sas token will not be appended to the tile's url.In progress are changes to allow the tool to switch between an iModel and reality data from within the same iTwin.