Skip to content

Commit

Permalink
feat: treat gravity and street states equally
Browse files Browse the repository at this point in the history
Perform image tiling for gravity state.
Log image tiling errors with verbose flag to avoid spamming.
  • Loading branch information
oscarlorentzon committed Nov 15, 2023
1 parent 565e449 commit 285475c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/component/image/ImageComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export class ImageComponent extends Component<ComponentConfiguration> {
switchMap(
([state, inTranslation]: [State, boolean]) => {
const streetState =
state === State.GravityTraversing ||
state === State.Traversing ||
state === State.Waiting ||
state === State.WaitingInteractively;
Expand Down
3 changes: 2 additions & 1 deletion src/tile/TextureProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ export class TextureProvider {
},
(error: Error): void => {
this._urlSubscriptions.delete(level);
console.error(error);
// tslint:disable-next-line:no-console
console.debug(error);
});

if (!subscription.closed) {
Expand Down
3 changes: 2 additions & 1 deletion src/viewer/Observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ export class Observer {
reference,
transform);

const basicPoint = state === State.Traversing ?
const basicPoint = state === State.Traversing ||
state === State.GravityTraversing ?
unprojection.basicPoint : null;

return {
Expand Down

0 comments on commit 285475c

Please sign in to comment.