Skip to content

Commit

Permalink
fix: set correct scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Jul 8, 2022
1 parent a0d43a6 commit 53bd6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/SHOGunApplicationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
...requestParams
},
crossOrigin,
imageLoadFunction: this.bearerTokenLoadFunction
imageLoadFunction: this.bearerTokenLoadFunction.bind(this)
});

const imageLayer = new OlImageLayer({
Expand Down Expand Up @@ -269,7 +269,7 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
...requestParams
},
crossOrigin,
tileLoadFunction: this.bearerTokenLoadFunction
tileLoadFunction: this.bearerTokenLoadFunction.bind(this)
});

const tileLayer = new OlTileLayer({
Expand Down

0 comments on commit 53bd6e8

Please sign in to comment.