Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async downloadIndex(indexRootKey: QuadKey): Promise {
let dsIndex: ConfigApi.Index;
const queryRequestBuilder = await this.getRequestBuilder("query");
dsIndex = await QueryApi.quadTreeIndexVolatile(queryRequestBuilder, {
layerId: this.layerId,
quadKey: utils.mortonCodeFromQuadKey(indexRootKey).toString(),
depth: this.indexDepth
});
return this.parseIndex(indexRootKey, dsIndex);
}