@@ -320,7 +320,7 @@ export class VectorTileSuperMapRest extends VectorTile {
320
320
this . baseUrl = url ;
321
321
style = await response . json ( ) ;
322
322
}
323
- await this . _fillByStyleJSON ( style , options . source ) ;
323
+ await this . _fillByStyleJSON ( style , options ) ;
324
324
} else {
325
325
this . _fillByRestMapOptions ( options . url , options ) ;
326
326
}
@@ -332,7 +332,8 @@ export class VectorTileSuperMapRest extends VectorTile {
332
332
}
333
333
}
334
334
335
- async _fillByStyleJSON ( style , source ) {
335
+ async _fillByStyleJSON ( style , options ) {
336
+ let { source, withCredentials } = options
336
337
if ( ! source ) {
337
338
source = Object . keys ( style . sources ) [ 0 ] ;
338
339
}
@@ -353,7 +354,7 @@ export class VectorTileSuperMapRest extends VectorTile {
353
354
if ( ! CommonUtil . isAbsoluteURL ( tiles ) ) {
354
355
tiles = CommonUtil . relative2absolute ( tiles , this . baseUrl ) ;
355
356
}
356
- const response = await FetchRequest . get ( tiles , { } , { withoutFormatSuffix : true } ) ;
357
+ const response = await FetchRequest . get ( tiles , { } , { withCredentials , withoutFormatSuffix : true } ) ;
357
358
const sourceInfo = await response . json ( ) ;
358
359
let tileUrl = sourceInfo . tiles [ 0 ] ;
359
360
if ( ! CommonUtil . isAbsoluteURL ( tileUrl ) ) {
0 commit comments