nl_tokens: Load a vector tile with full fetchOptions This is only used when the Authorization header has been set in the fetchOptions .
pl_tokens: function authVectorTileLoader ( fetchOptions ) { return function ( tile , url ) { const loader = ( ) => { fetch ( url , fetchOptions ) . then ( r => r . arrayBuffer ( ) ) . then ( ( source ) => { const format = tile . getFormat ( ) ; tile . setProjection ( format . readProjection ( <mask> ) ) ; tile . setFeatures ( format . readFeatures ( source ) ) ; tile . setExtent ( format . getLastExtent ( ) ) ; } ) . catch ( ( err ) => { tile . onError ( ) ; } ) ; } ; tile . setLoader ( loader ) ; } ; }