Skip to content

Commit 3bd3617

Browse files
feat(implicitTiling): Add support for external buffer (#1038)
* fix(implicitTiling): Ignore external buffer * feat(implicitTiling): support external buffer * feat(implicitTiling): reformat the code * Remove __basePath reference from SUBTREELoader * Fix async parseTile * Remove outdated comment --------- Co-authored-by: Garrett Johnson <garrett.kjohnson@gmail.com>
1 parent d3b3174 commit 3bd3617

2 files changed

Lines changed: 128 additions & 135 deletions

File tree

src/plugins/base/ImplicitTilingPlugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ export class ImplicitTilingPlugin {
4141

4242
}
4343

44-
parseTile( buffer, parseTile, extension ) {
44+
parseTile( buffer, tile, extension ) {
4545

4646
if ( /^subtree$/i.test( extension ) ) {
4747

48-
const loader = new SUBTREELoader( parseTile );
49-
loader.parse( buffer );
50-
return Promise.resolve();
48+
const loader = new SUBTREELoader( tile );
49+
loader.workingPath = tile.__basePath;
50+
return loader.parse( buffer );
5151

5252
}
5353

0 commit comments

Comments
 (0)