File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,17 +32,8 @@ export class PMTilesPlugin extends EllipsoidProjectionTilesPlugin {
3232
3333 }
3434
35- const data = res . data ;
36-
37- // Handle both ArrayBuffer and Uint8Array
38- if ( data instanceof ArrayBuffer ) {
39-
40- return data ;
41-
42- }
43-
44- // Uint8Array - copy to new ArrayBuffer to avoid shared buffer issues
45- return data . slice ( ) . buffer ;
35+ // res.data is ArrayBuffer per PMTiles API
36+ return res . data ;
4637
4738 } ) ;
4839
Original file line number Diff line number Diff line change @@ -45,14 +45,8 @@ export class PMTilesImageSource extends MVTImageSource {
4545
4646 }
4747
48- // res.data is Uint8Array - convert to ArrayBuffer for processBufferToTexture
49- const data = res . data ;
50- const buffer = data . buffer . slice (
51- data . byteOffset ,
52- data . byteOffset + data . byteLength
53- ) ;
54-
55- return this . processBufferToTexture ( buffer ) ;
48+ // res.data is ArrayBuffer per PMTiles API
49+ return this . processBufferToTexture ( res . data ) ;
5650
5751 } ) ;
5852
You can’t perform that action at this time.
0 commit comments